diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-01-21 18:23:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-01-21 18:23:42 +0000 |
commit | e1e6acecb3efdbf541f8565127f94b03c88a3926 (patch) | |
tree | fe71e58d585ed19ffb2bc1f6374b192f3fea8882 /compiler-rt | |
parent | 384a84208573435a3a1e96de447153fe51aab997 (diff) | |
download | bcm5719-llvm-e1e6acecb3efdbf541f8565127f94b03c88a3926.tar.gz bcm5719-llvm-e1e6acecb3efdbf541f8565127f94b03c88a3926.zip |
clang_darwin: Build with -fno-builtin, primarily to avoid issues with defining possible builtin functions.
llvm-svn: 123988
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/make/platform/clang_darwin.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk index 040373d7f00..fec905ab096 100644 --- a/compiler-rt/make/platform/clang_darwin.mk +++ b/compiler-rt/make/platform/clang_darwin.mk @@ -38,7 +38,11 @@ CC := gcc override CC := $(subst -arch ,-arch_,$(CC)) override CC := $(patsubst -arch_%,,$(CC)) -CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer +# Note that although we use -fno-builtin here, the backend may still synthesize +# calls to runtime functions. Unfortunately, we currently have no way to +# guarantee that we won't be creating a cycle in the runtime library, aside from +# explicit runtime testing. +CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer -fno-builtin FUNCTIONS.eprintf := eprintf FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf |