diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-03-17 21:25:13 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-03-17 21:25:13 +0000 |
commit | 3a584606053ecd016334a925bffd9af463d96884 (patch) | |
tree | 0ef284a11e404c256b952357d6d3feeff2638de7 /utils | |
parent | 164fe923dac9b977ab0e3d923978cf0ba875d959 (diff) | |
download | external_llvm-3a584606053ecd016334a925bffd9af463d96884.zip external_llvm-3a584606053ecd016334a925bffd9af463d96884.tar.gz external_llvm-3a584606053ecd016334a925bffd9af463d96884.tar.bz2 |
Use llvm-gcc to build ARM when it's available
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/buildit/build_llvm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 1fa3fdf..f67794e 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -106,11 +106,10 @@ if [ "x$RC_ProjectName" = "xllvmCore_EmbeddedHosted" ]; then # Try to use the platform llvm-gcc. Fall back to gcc if it's not available. for prog in gcc g++ ; do P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog} -# FIXME: Uncomment once llvm-gcc works for this -# T=`xcrun -find llvm-${prog}` -# if [ "x$T" = "x" ] ; then + T=`xcrun -find llvm-${prog}` + if [ "x$T" = "x" ] ; then T=`xcrun -sdk $SDKROOT -find ${prog}` -# fi + fi echo '#!/bin/sh' > $P || exit 1 echo 'exec '$T' -arch armv6 -isysroot '${SDKROOT}' "$@"' >> $P || exit 1 chmod a+x $P || exit 1 |