Do not include multiple -arch options in CPPFLAGS.
authorBob Wilson <bob.wilson@apple.com>
Thu, 5 Apr 2012 00:35:55 +0000 (00:35 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 5 Apr 2012 00:35:55 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154070 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index d6086c1418210bd52c5005b5b051d66d497bc113..88a26d30955222e04dadbaaafcf7ae9b558a65c7 100755 (executable)
@@ -120,9 +120,8 @@ if [ "$ARM_HOSTED_BUILD" != yes ]; then
   if [ $SDKROOT ]; then
     CPPFLAGS="$CPPFLAGS -isysroot $SDKROOT"
   fi
   if [ $SDKROOT ]; then
     CPPFLAGS="$CPPFLAGS -isysroot $SDKROOT"
   fi
-  for host in $HOSTS; do
-    CPPFLAGS="$CPPFLAGS -arch $host"
-  done
+  for host in $HOSTS; do :; done
+  CPPFLAGS="$CPPFLAGS -arch $host"
 fi
 
 if [ \! -f Makefile.config ]; then
 fi
 
 if [ \! -f Makefile.config ]; then