summaryrefslogtreecommitdiff
path: root/utils/buildit
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-01-25 18:40:25 +0000
committerBob Wilson <bob.wilson@apple.com>2013-01-25 18:40:25 +0000
commitfe67b4e249fb4a396ab4069cd65ccb1183513300 (patch)
treecedf9e0ac6199c4d32d03a5c5730297d346662aa /utils/buildit
parentf8c2f90bb3c70ab1830b44da990bda499f1e65d1 (diff)
downloadllvm-fe67b4e249fb4a396ab4069cd65ccb1183513300.tar.gz
llvm-fe67b4e249fb4a396ab4069cd65ccb1183513300.tar.bz2
llvm-fe67b4e249fb4a396ab4069cd65ccb1183513300.tar.xz
Use xcrun to find the right compiler when building llvmCore. <rdar://12801151>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index 42f8af0ef4..c7777f8338 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -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 \