Add an explicit -sdk option to xcrun command.
[oota-llvm.git] / utils / buildit / build_llvm
index 37fb0efaa36b8f98b6883058684080c2b78ab895..39ec1ccda9c0c21a894a17c12e705358696ab878 100755 (executable)
@@ -100,7 +100,7 @@ if [ "$ARM_HOSTED_BUILD" = yes ]; then
   # Try to use the platform llvm-gcc. Fall back to gcc if it's not available.
   for prog in gcc g++ ; do
     P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog}
-    T=`xcrun -find llvm-${prog}`
+    T=`xcrun -sdk $SDKROOT -find llvm-${prog}`
     if [ "x$T" = "x" ] ; then
       T=`xcrun -sdk $SDKROOT -find ${prog}`
     fi