summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-09-16 20:36:22 +0000
committerEric Christopher <echristo@apple.com>2011-09-16 20:36:22 +0000
commit04f138e2253d30bc754d82d40c3271d8882b4885 (patch)
treea3a99256e9d1bfd0c266c9d8a39f4f56e991c146 /utils
parent48dbeecd7e3df35ef133161f7f931da6d179dbe9 (diff)
downloadllvm-04f138e2253d30bc754d82d40c3271d8882b4885.tar.gz
llvm-04f138e2253d30bc754d82d40c3271d8882b4885.tar.bz2
llvm-04f138e2253d30bc754d82d40c3271d8882b4885.tar.xz
Migrate this to use clang by default as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/buildit/build_llvm9
1 files changed, 3 insertions, 6 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 731ca6f28d..d52c475356 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -97,13 +97,10 @@ if [ "$ARM_HOSTED_BUILD" = yes ]; then
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