Bug 1400533: Disable xcode installation checking when using tooltool provided OSX SDK. draft
authorTom Prince <mozilla@hocat.ca>
Wed, 27 Sep 2017 14:33:17 -0600
changeset 55079 56469c9bdea5d6227a355c263755725d458001ae
parent 55077 56bef3d0c550acf9e9976bc9aba2d6bfa0c49694
child 55080 bfe46650aee50a3a427ad967fb6221183ca12b6c
push id4968
push usermozilla@hocat.ca
push dateWed, 27 Sep 2017 20:33:42 +0000
treeherdertry-comm-central@bfe46650aee5 [default view] [failures only]
bugs1400533
Bug 1400533: Disable xcode installation checking when using tooltool provided OSX SDK. MozReview-Commit-ID: DrgjJBboPIj
build/macosx/local-mozconfig.common
--- a/build/macosx/local-mozconfig.common
+++ b/build/macosx/local-mozconfig.common
@@ -22,16 +22,18 @@ fi
 
 if [ -d $TOOLTOOL_DIR/MacOSX10.10.sdk ]; then
     export CROSS_SYSROOT=$TOOLTOOL_DIR/MacOSX10.10.sdk
     CROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworks
     FLAGS="-isysroot $CROSS_SYSROOT"
     ldflags="-Wl,-syslibroot,$CROSS_SYSROOT "
     export BINDGEN_CFLAGS="$FLAGS"
     ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
+    # Since we are manually providing an SDK, don't check for xcode being installed.
+    ac_add_options --disable-xcode-checks
 else
     FLAGS=""
 fi
 
 if [ -d $TOOLTOOL_DIR ]; then
     export CC="$TOOLTOOL_DIR/clang/bin/clang $FLAGS"
     export CXX="$TOOLTOOL_DIR/clang/bin/clang++ $FLAGS"
     export CPP="$TOOLTOOL_DIR/clang/bin/clang $FLAGS -E"