[llvm-commits] [llvm] r139936 - /llvm/trunk/utils/buildit/build_llvm
Eric Christopher
echristo at apple.com
Fri Sep 16 13:36:23 PDT 2011
Author: echristo
Date: Fri Sep 16 15:36:22 2011
New Revision: 139936
URL: http://llvm.org/viewvc/llvm-project?rev=139936&view=rev
Log:
Migrate this to use clang by default as well.
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=139936&r1=139935&r2=139936&view=diff
==============================================================================
--- llvm/trunk/utils/buildit/build_llvm (original)
+++ llvm/trunk/utils/buildit/build_llvm Fri Sep 16 15:36:22 2011
@@ -97,13 +97,10 @@
echo 'exec '$T' "$@"' >> $P || exit 1
chmod a+x $P || exit 1
done
- # Try to use the platform llvm-gcc. Fall back to gcc if it's not available.
- for prog in gcc g++ ; do
+ # Set up the links for clang.
+ for prog in clang clang++ ; do
P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog}
- T=`xcrun -sdk $SDKROOT -find llvm-${prog}`
- if [ "x$T" = "x" ] ; then
- T=`xcrun -sdk $SDKROOT -find ${prog}`
- fi
+ T=`xcrun -sdk $SDKROOT -find ${prog}`
echo '#!/bin/sh' > $P || exit 1
echo 'exec '$T' -arch armv7 -isysroot '${SDKROOT}' "$@"' >> $P || exit 1
chmod a+x $P || exit 1
More information about the llvm-commits
mailing list