summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-04-03 21:50:26 +0000
committerBob Wilson <bob.wilson@apple.com>2012-04-03 21:50:26 +0000
commit8bbd98df0090f749fa12ac460352dac096f7f22e (patch)
tree11e004927fdeff137593a65049b3ea87d4ba9e04
parent5512ec8bae73a72c6920aca76fa674f408781f2e (diff)
downloadbcm5719-llvm-8bbd98df0090f749fa12ac460352dac096f7f22e.tar.gz
bcm5719-llvm-8bbd98df0090f749fa12ac460352dac096f7f22e.zip
When building llvmCore, pass the SDKROOT and -arch setting to configure.
So far all of configure tests have been run against the default SDK and architecture, regardless of what is actually being built. We've gotten lucky until now. <rdar://problem/11112479> llvm-svn: 153972
-rwxr-xr-xllvm/utils/buildit/build_llvm10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/utils/buildit/build_llvm b/llvm/utils/buildit/build_llvm
index 5c4909c6f34..41ac6678e0a 100755
--- a/llvm/utils/buildit/build_llvm
+++ b/llvm/utils/buildit/build_llvm
@@ -120,11 +120,21 @@ else
configure_opts="--enable-targets=arm,x86"
fi
+if [ "$ARM_HOSTED_BUILD" != yes ]; then
+ if [ $SDKROOT ]; then
+ CPPFLAGS="$CPPFLAGS -isysroot $SDKROOT"
+ fi
+ for host in $HOSTS; do
+ CPPFLAGS="$CPPFLAGS -arch $host"
+ done
+fi
+
if [ \! -f Makefile.config ]; then
$SRC_DIR/configure --prefix=$DEST_DIR$DEST_ROOT $configure_opts \
--enable-assertions=$LLVM_ASSERTIONS \
--enable-optimized=$LLVM_OPTIMIZED \
--disable-bindings \
+ CPPFLAGS="$CPPFLAGS" \
|| exit 1
fi
OpenPOWER on IntegriCloud