llvm.org GIT mirror llvm / 04f138e
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 Eric Christopher 8 years ago
1 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
9696 echo 'exec '$T' "$@"' >> $P || exit 1
9797 chmod a+x $P || exit 1
9898 done
99 # Try to use the platform llvm-gcc. Fall back to gcc if it's not available.
100 for prog in gcc g++ ; do
99 # Set up the links for clang.
100 for prog in clang clang++ ; do
101101 P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog}
102 T=`xcrun -sdk $SDKROOT -find llvm-${prog}`
103 if [ "x$T" = "x" ] ; then
104 T=`xcrun -sdk $SDKROOT -find ${prog}`
105 fi
102 T=`xcrun -sdk $SDKROOT -find ${prog}`
106103 echo '#!/bin/sh' > $P || exit 1
107104 echo 'exec '$T' -arch armv7 -isysroot '${SDKROOT}' "$@"' >> $P || exit 1
108105 chmod a+x $P || exit 1