Config.macosx: first two digits of 'xcodebuild -version' number is enough; throw away rest of version number.

$ xcodebuild -version
Xcode 4.3.3
Build version 4E3002
Fixes #543.
db4
Doug Coleman 2012-06-22 15:15:00 -07:00
parent e490331dd8
commit 1a9caec368
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ 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]+).([0-9])/\1\2/p'` -ge 43 ]]; 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