Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit db28f69997f8b66ae146956aef2baa7f6c41beb9 1 parent 8ee0e12
@jckarter jckarter authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 vm/Config.macosx
View
10 vm/Config.macosx
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.