diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk index 040373d7f001..fec905ab096d 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