[llvm-commits] [compiler-rt] r94216 - /compiler-rt/trunk/make/platform/clang_darwin.mk
Daniel Dunbar
daniel at zuster.org
Fri Jan 22 13:06:18 PST 2010
Author: ddunbar
Date: Fri Jan 22 15:06:18 2010
New Revision: 94216
URL: http://llvm.org/viewvc/llvm-project?rev=94216&view=rev
Log:
Tweak clang_darwin config to strip off any -arch if the user overrides CC, we do
this during an Apple style build.
Modified:
compiler-rt/trunk/make/platform/clang_darwin.mk
Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=94216&r1=94215&r2=94216&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Fri Jan 22 15:06:18 2010
@@ -22,6 +22,10 @@
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
More information about the llvm-commits
mailing list