Bug 1760185 [wpt PR 33176] - [FedCM] Add hint argument to revoke, a=testonly
[gecko.git] / build / macosx / cross-mozconfig.common
blob40a62262abb1235d91bc0f310dae304b295e757c
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 . "$topsrcdir/build/mozconfig.common"
7 # cctools for ld, ar, and other related tools ; dsymutil for rust.
8 mk_add_options "export PATH=$MOZ_FETCHES_DIR/cctools/bin:$MOZ_FETCHES_DIR/binutils/bin:$MOZ_FETCHES_DIR/clang/bin:$PATH"
10 # dsymutil needs a libstdc++ more recent than what's on the system.
11 mk_add_options "export LD_LIBRARY_PATH=$MOZ_FETCHES_DIR/clang/lib"
13 CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX10.12.sdk
15 export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
16 export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
17 export DSYMUTIL=$MOZ_FETCHES_DIR/clang/bin/dsymutil
18 export MKFSHFS=$MOZ_FETCHES_DIR/hfsplus-tools/newfs_hfs
19 export DMG_TOOL=$MOZ_FETCHES_DIR/dmg/dmg
20 export HFS_TOOL=$MOZ_FETCHES_DIR/dmg/hfsplus
22 export HOST_CFLAGS="-g"
23 export HOST_CXXFLAGS="-g"
24 export HOST_LDFLAGS="-g"
26 ac_add_options --target=x86_64-apple-darwin
27 export MACOS_SDK_DIR=$CROSS_SYSROOT
29 if [ "x$MOZ_PKG_SPECIAL" != "xasan" -a -z "$MOZ_AUTOMATION_ARTIFACT_BUILDS" ]; then
30   # Enable static analysis checks by default on OSX cross builds.
31   # Exception is ASan, where this breaks.
32   # The option is not valid on artifact builds, so don't add it there either.
33   ac_add_options --enable-clang-plugin
36 unset MOZ_STDCXX_COMPAT