Use llvm-gcc on newer Darwins.
authorBill Wendling <isanbard@gmail.com>
Tue, 3 Nov 2009 22:50:10 +0000 (22:50 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 3 Nov 2009 22:50:10 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85963 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index 4bbd2cd9f27b8b25408a5df733e2caba6f43f83b..4fdc77039aaed2b04eda44ba509a2be5eac2bef7 100755 (executable)
@@ -123,7 +123,7 @@ if [ "x$RC_ProjectName" = "xllvmCore_EmbeddedHosted" ]; then
 
   PATH=$DIR/bin:$PATH
 # otherwise, try to use llvm-gcc if it's available
-else
+elif [ $DARWIN_VERS -gt 9 ]; then
   # If the user has set CC or CXX, respect their wishes.  If not,
   # compile with LLVM-GCC/LLVM-G++ if available; if LLVM is not
   # available, fall back to usual GCC/G++ default.