[llvm-commits] [llvm] r76080 - /llvm/trunk/utils/buildit/build_llvm
Stuart Hastings
stuart at apple.com
Thu Jul 16 09:49:12 PDT 2009
Author: stuart
Date: Thu Jul 16 11:49:11 2009
New Revision: 76080
URL: http://llvm.org/viewvc/llvm-project?rev=76080&view=rev
Log:
In an Apple-style build, compile with llvm-gcc/llvm-g++ if available.
Modified:
llvm/trunk/utils/buildit/build_llvm
Modified: llvm/trunk/utils/buildit/build_llvm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/buildit/build_llvm?rev=76080&r1=76079&r2=76080&view=diff
==============================================================================
--- llvm/trunk/utils/buildit/build_llvm (original)
+++ llvm/trunk/utils/buildit/build_llvm Thu Jul 16 11:49:11 2009
@@ -56,8 +56,11 @@
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"
More information about the llvm-commits
mailing list