llvm.org GIT mirror llvm / 585d580
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 Bob Wilson 7 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
119119 configure_opts="--enable-targets=arm,x86"
120120 fi
121121
122 if [ "$ARM_HOSTED_BUILD" != yes ]; then
123 if [ $SDKROOT ]; then
124 CPPFLAGS="$CPPFLAGS -isysroot $SDKROOT"
125 fi
126 for host in $HOSTS; do
127 CPPFLAGS="$CPPFLAGS -arch $host"
128 done
129 fi
130
122131 if [ \! -f Makefile.config ]; then
123132 $SRC_DIR/configure --prefix=$DEST_DIR$DEST_ROOT $configure_opts \
124133 --enable-assertions=$LLVM_ASSERTIONS \
125134 --enable-optimized=$LLVM_OPTIMIZED \
126135 --disable-bindings \
136 CPPFLAGS="$CPPFLAGS" \
127137 || exit 1
128138 fi
129139