OS X Lion build fix: remove GCC_VERSION=4.2 only if building on Lion.

Tonya Souther 2011-11-08 21:22:47 -06:00
parent a93ae0aac2
commit 8f8922b1d6
1 changed files with 5 additions and 1 deletions

View File

@ -378,7 +378,11 @@ fi
if [ $WANTS_BUILD -eq $TRUE ] ; then
echo "Building $PLATFORM..."
if [ $PLATFORM == "darwin" ] ; then
xcodebuild -configuration $BTYPE -project Firestorm.xcodeproj GCC_VERSION=4.2 GCC_OPTIMIZATION_LEVEL=3 GCC_ENABLE_SSE3_EXTENSIONS=YES 2>&1 | tee -a $LOG
if [ $OSTYPE == "darwin11" ] ; then
xcodebuild -configuration $BTYPE -project Firestorm.xcodeproj GCC_OPTIMIZATION_LEVEL=3 GCC_ENABLE_SSE3_EXTENSIONS=YES 2>&1 | tee -a $LOG
else
xcodebuild -configuration $BTYPE -project Firestorm.xcodeproj GCC_VERSION=4.2 GCC_OPTIMIZATION_LEVEL=3 GCC_ENABLE_SSE3_EXTENSIONS=YES 2>&1 | tee -a $LOG
fi
elif [ $PLATFORM == "linux32" ] ; then
JOBS=`cat /proc/cpuinfo | grep processor | wc -l`
make -j $JOBS | tee -a $LOG