Bug 1513798 - Use x86_64-darwin11 as a prefix for cctools-port, rather than x86_64-apple-darwin11. r=nalexander
This matches more closely cross toolchains prefixes (as can be seen in
e.g. media/libvpx/libvpx/README for x86_64-darwin*-gcc), and leaves it
to the build system to figure out the right --target to pass to clang on
its own.
Differential Revision: https://phabricator.services.mozilla.com/D14376
# This Source Code Form is subject to the terms of the Mozilla Public# License, v. 2.0. If a copy of the MPL was not distributed with this# file, You can obtain one at http://mozilla.org/MPL/2.0/.MOZ_AUTOMATION_L10N_CHECK=0. "$topsrcdir/build/mozconfig.common"# Rust requires dsymutil into PATHmk_add_options "export PATH=$topsrcdir/llvm-dsymutil/bin:$PATH"# ld needs libLTO.so from llvmmk_add_options "export LD_LIBRARY_PATH=$topsrcdir/clang/lib"CROSS_CCTOOLS_PATH=$topsrcdir/cctools# This SDK was copied from a local XCode install and uploaded to tooltool.# Generate the tarball by running this command with the proper SDK version:# sdk_path=$(xcrun --sdk macosx10.12 --show-sdk-path)# tar -C $(dirname ${sdk_path}) -cHjf /tmp/$(basename ${sdk_path}).tar.bz2 $(basename ${sdk_path})# Upload the resulting tarball from /tmp to tooltool, and change the entry in# `browser/config/tooltool-manifests/macosx64/cross-releng.manifest`.CROSS_SYSROOT=$topsrcdir/MacOSX10.11.sdkCROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworksFLAGS="-B $CROSS_CCTOOLS_PATH/bin -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-configexport LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT"export BINDGEN_CFLAGS="$FLAGS"export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-darwin11-export DSYMUTIL=$topsrcdir/build/macosx/llvm-dsymutilmk_add_options "export REAL_DSYMUTIL=$topsrcdir/llvm-dsymutil/bin/dsymutil"export MKFSHFS=$topsrcdir/hfsplus-tools/newfs_hfsexport DMG_TOOL=$topsrcdir/dmg/dmgexport HFS_TOOL=$topsrcdir/dmg/hfsplusexport HOST_CC="$topsrcdir/clang/bin/clang"export HOST_CXX="$topsrcdir/clang/bin/clang++"export HOST_CPP="$topsrcdir/clang/bin/clang -E"export HOST_CFLAGS="-g"export HOST_CXXFLAGS="-g"export HOST_LDFLAGS="-g"ac_add_options --target=x86_64-apple-darwin11ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKSif [ "x$MOZ_PKG_SPECIAL" != "xasan" -a -z "$MOZ_AUTOMATION_ARTIFACT_BUILDS" ]; then # Enable static analysis checks by default on OSX cross builds. # Exception is ASan, where this breaks. # The option is not valid on artifact builds, so don't add it there either. ac_add_options --enable-clang-pluginfi