use clang when building w/ xcode >4.3; it's faster

db4
Joe Groff 2012-02-18 23:40:38 -08:00
parent 119fd8b6ce
commit 3f9b2ef47a
1 changed files with 5 additions and 5 deletions

View File

@ -24,15 +24,15 @@ LINKER = $(CPP) $(CFLAGS) -dynamiclib -single_module \
LINK_WITH_ENGINE = -lfactor
LEOPARD_P := $(shell [[ `uname -r | sed -E -e 's/^([0-9]+).*/\1/'` -le 9 ]]; echo $$?)
XCODE_4_P := $(shell [[ `xcodebuild -version | sed -E -ne 's/^Xcode ([0-9]+).*/\1/p'` -ge 4 ]]; echo $$?)
XCODE_4_P := $(shell [[ `xcodebuild -version | sed -E -ne 's/^Xcode ([0-9]+).([0-9])/\1\2/p'` -ge 43 ]]; echo $$?)
ifeq ($(LEOPARD_P),0)
CC = gcc-4.2
CPP = g++-4.2
endif
# ifeq ($(XCODE_4_P),0)
# CC = clang
# CPP = clang++
# endif
ifeq ($(XCODE_4_P),0)
CC = clang
CPP = clang++
endif