From fe67b4e249fb4a396ab4069cd65ccb1183513300 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 25 Jan 2013 18:40:25 +0000 Subject: [PATCH] Use xcrun to find the right compiler when building llvmCore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173468 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/buildit/build_llvm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 42f8af0ef4e..c7777f83383 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 \