Use xcrun to find the right compiler when building llvmCore. <rdar://12801151>

llvm-svn: 173468
This commit is contained in:
Bob Wilson 2013-01-25 18:40:25 +00:00
parent c8adf3ff6e
commit c319344b1c
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ if [ "$ARM_HOSTED_BUILD" = yes ]; then
else
# not $ARM_HOSTED_BUILD
export CC=`xcrun -find clang`
export CXX=`xcrun -find clang++`
if [ "$IOS_SIM_BUILD" = yes ]; then
# Use a non-standard "darwin_sim" host triple to trigger a cross-build.
configure_opts="--enable-targets=x86 --host=i686-apple-darwin_sim \