[llvm-commits] [llvm-gcc-4.2] r76083 - /llvm-gcc-4.2/trunk/build_gcc
Stuart Hastings
stuart at apple.com
Thu Jul 16 10:22:36 PDT 2009
Author: stuart
Date: Thu Jul 16 12:22:33 2009
New Revision: 76083
URL: http://llvm.org/viewvc/llvm-project?rev=76083&view=rev
Log:
In an Apple-style build, compile with llvm-gcc/llvm-g++ if available.
Modified:
llvm-gcc-4.2/trunk/build_gcc
Modified: llvm-gcc-4.2/trunk/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/build_gcc?rev=76083&r1=76082&r2=76083&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/build_gcc (original)
+++ llvm-gcc-4.2/trunk/build_gcc Thu Jul 16 12:22:33 2009
@@ -165,8 +165,11 @@
fi
# APPLE LOCAL end ARM
-# 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
########################################
# Run the build.
More information about the llvm-commits
mailing list