Skip to content

Commit

Permalink
Migrate this to use clang by default as well.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139936 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Sep 16, 2011
1 parent 48dbeec commit 04f138e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions utils/buildit/build_llvm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04f138e

Please sign in to comment.