llvm.org GIT mirror llvm / 6cccb32
Use the proper SDK when building iOS sim builds of LLVM and/or Mac OS X builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200335 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 5 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
170170 else
171171 # not $ARM_HOSTED_BUILD
172172
173 export CC=`xcrun -find clang`
174 export CXX=`xcrun -find clang++`
175
176173 if [ "$IOS_SIM_BUILD" = yes ]; then
174 export CC=`xcrun -sdk iphonesimulator -find clang`
175 export CXX=`xcrun -sdk iphonesimulator -find clang++`
176
177177 # Use a non-standard "darwin_sim" host triple to trigger a cross-build.
178178 configure_opts="--enable-targets=x86 --host=i686-apple-darwin_sim \
179179 --build=i686-apple-darwin10"
182182 DEPLOYMENT_TARGET=-mios-simulator-version-min=$IPHONEOS_DEPLOYMENT_TARGET"
183183 fi
184184 else
185 export CC=`xcrun -sdk macosx -find clang`
186 export CXX=`xcrun -sdk macosx -find clang++`
187
185188 configure_opts="--enable-targets=arm,x86"
186189 if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then
187190 COMMON_MAKEFLAGS="$COMMON_MAKEFLAGS \