In an Apple-style build, compile with llvm-gcc/llvm-g++ if available.

llvm-svn: 76080
This commit is contained in:
Stuart Hastings 2009-07-16 16:49:11 +00:00
parent 69d03cf2ee
commit a32ebacb77

View File

@ -56,8 +56,11 @@ DIR=`pwd`
DARWIN_VERS=`uname -r | sed 's/\..*//'`
echo DARWIN_VERS = $DARWIN_VERS
# If the user has CC set in their environment unset it now
unset CC
# If we can find an LLVM-GCC, prefer it.
export CC=/Developer/usr/bin/llvm-gcc
if [ ! -x $CC ] ; then unset CC ; fi
export CXX=/Developer/usr/bin/llvm-g++
if [ ! -x $CXX ] ; then unset CXX ; fi
DT_HOME=$DEST_DIR/Developer/usr
DEST_ROOT="/Developer$DEST_ROOT"