aboutsummaryrefslogtreecommitdiffstats
path: root/utils/buildit
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
commit585d580acb252c048692d9a6a3b705d65bf7e5e2 (patch)
tree67293e38d70b797582fd0fbd1331f6dc53f261d8 /utils/buildit
parentac07407acb53f3c9462141928ab18ec07dab43be (diff)
downloadexternal_llvm-585d580acb252c048692d9a6a3b705d65bf7e5e2.zip
external_llvm-585d580acb252c048692d9a6a3b705d65bf7e5e2.tar.gz
external_llvm-585d580acb252c048692d9a6a3b705d65bf7e5e2.tar.bz2
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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 5c4909c..41ac667 100755
--- a/utils/buildit/build_llvm
+++ b/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