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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Stuart Hastings 2009-07-16 16:49:11 +00:00
parent 9377386493
commit 021da14dac

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"