summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-22 21:06:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-22 21:06:18 +0000
commitf99eaa948d86d4275f56325d863175de948f5123 (patch)
treebfa0506f3bae056d992654d1941b2f85589d54ab
parent23e43dbba1b02ac748b39d9c9073007fbb879ed1 (diff)
downloadbcm5719-llvm-f99eaa948d86d4275f56325d863175de948f5123.tar.gz
bcm5719-llvm-f99eaa948d86d4275f56325d863175de948f5123.zip
Tweak clang_darwin config to strip off any -arch if the user overrides CC, we do
this during an Apple style build. llvm-svn: 94216
-rw-r--r--compiler-rt/make/platform/clang_darwin.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk
index 6a7b03c9a6f..d3c96ba634c 100644
--- a/compiler-rt/make/platform/clang_darwin.mk
+++ b/compiler-rt/make/platform/clang_darwin.mk
@@ -22,6 +22,10 @@ UniversalArchs.armv6 := armv6
CC := gcc
+# Forcibly strip off any -arch, as that totally breaks our universal support.
+override CC := $(subst -arch ,-arch_,$(CC))
+override CC := $(patsubst -arch_%,,$(CC))
+
CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer
FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf
OpenPOWER on IntegriCloud