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
This commit is contained in:
Daniel Dunbar 2010-01-22 21:06:18 +00:00
parent 23e43dbba1
commit f99eaa948d
1 changed files with 4 additions and 0 deletions

View File

@ -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