mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
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
This commit is contained in:
parent
1944a74c98
commit
f68ed1883e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user