From e1e6acecb3efdbf541f8565127f94b03c88a3926 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 21 Jan 2011 18:23:42 +0000 Subject: clang_darwin: Build with -fno-builtin, primarily to avoid issues with defining possible builtin functions. llvm-svn: 123988 --- compiler-rt/make/platform/clang_darwin.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compiler-rt') 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 -- cgit v1.2.3