try: --buildbot -b d -p macosx64 -u none draft
authorTom Prince <mozilla@hocat.ca>
Thu, 21 Sep 2017 11:36:36 -0600
changeset 54926 98aca9b8b70845865c399da4bd8cc09f2f99f422
parent 54922 d3dd512fb50730cfbf82b604db8561e14c07df7c
push id4905
push usermozilla@hocat.ca
push dateThu, 21 Sep 2017 17:36:39 +0000
treeherdertry-comm-central@98aca9b8b708 [default view] [failures only]
try: --buildbot -b d -p macosx64 -u none
build/macosx/local-mozconfig.common
mail/config/tooltool-manifests/macosx64/clang.manifest
--- a/build/macosx/local-mozconfig.common
+++ b/build/macosx/local-mozconfig.common
@@ -6,34 +6,41 @@ if [ "x$IS_NIGHTLY" = "xyes" ]; then
   # Some nightlies (eg: Mulet) don't want these set.
   MOZ_AUTOMATION_UPLOAD_SYMBOLS=${MOZ_AUTOMATION_UPLOAD_SYMBOLS-1}
   MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-1}
 fi
 . "$topsrcdir/build/mozconfig.common"
 
 if [ -d "$topsrcdir/clang" ]; then
     # mozilla-central based build
+    export CROSS_SYSROOT=$topsrcdir/MacOSX10.11.sdk
     export CC=$topsrcdir/clang/bin/clang
     export CXX=$topsrcdir/clang/bin/clang++
     export LLVMCONFIG=$topsrcdir/clang/bin/llvm-config
     export DSYMUTIL=$topsrcdir/clang/bin/llvm-dsymutil
     # Use an updated linker.
     ldflags="-B$topsrcdir/cctools/bin"
     export AR=$topsrcdir/cctools/bin/ar
     export RANLIB=$topsrcdir/cctools/bin/ranlib
 elif [ -d "$topsrcdir/../clang" ]; then
     # comm-central based build
-    export CC=$topsrcdir/../clang/bin/clang
-    export CXX=$topsrcdir/../clang/bin/clang++
+    export CROSS_SYSROOT=$topsrcdir/../MacOSX10.11.sdk
+    CROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworks
+    FLAGS="-isysroot $CROSS_SYSROOT"
+    export CC="$topsrcdir/../clang/bin/clang $FLAGS"
+    export CXX="$topsrcdir/../clang/bin/clang++ $FLAGS"
+    export CPP="$topsrcdir/../clang/bin/clang $FLAGS -E"
     export LLVMCONFIG=$topsrcdir/../clang/bin/llvm-config
     export DSYMUTIL=$topsrcdir/../clang/bin/llvm-dsymutil
     # Use an updated linker.
-    ldflags="-B$topsrcdir/../cctools/bin"
+    ldflags="-B$topsrcdir/../cctools/bin -Wl,-syslibroot,$CROSS_SYSROOT "
+    export BINDGEN_CFLAGS="$FLAGS"
     export AR=$topsrcdir/../cctools/bin/ar
     export RANLIB=$topsrcdir/../cctools/bin/ranlib
+    ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
 fi
 
 # Ensure the updated linker doesn't generate things our older build tools
 # don't understand.
 ldflags="$ldflags -Wl,-no_data_in_code_info"
 export LDFLAGS="$ldflags"
 
 # If not set use the system default clang
--- a/mail/config/tooltool-manifests/macosx64/clang.manifest
+++ b/mail/config/tooltool-manifests/macosx64/clang.manifest
@@ -26,10 +26,18 @@
   },
   {
     "version": "cctools port from commit hash 8e9c3f2506b51",
     "size": 2233376,
     "digest": "d632ef587f0253f016aa5323999a3d9576284c04e66b5243a5780af9a55f474ac91ad8dee5bd86a6ee4e2593e2b345e2fd0aa4e8838b3686f84c5c5ac5c9c418",
     "algorithm": "sha512",
     "filename": "cctools.tar.bz2",
     "unpack": true
+  },
+  {
+    "size":  30823112,
+    "visibility": "internal",
+    "digest": "0c58e06a3ea8f4641c991a7406fc8733c574f0b4aa773bce0feaa5468d2b8440fa33cea056e16fad2b8a7ef4409ca7228113eb12adc87c3e115129d8a3b3b565",
+    "algorithm": "sha512",
+    "unpack": true,
+    "filename": "MacOSX10.10.sdk.tar.xz"
   }
 ]