2015-07-14 14:02:22 +03:00
|
|
|
# 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
|
|
|
|
|
|
|
|
if [ "x$IS_NIGHTLY" = "xyes" ]; then
|
|
|
|
# Some nightlies (eg: Mulet) don't want these set.
|
|
|
|
MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-1}
|
|
|
|
fi
|
|
|
|
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
|
|
|
|
# ld needs libLTO.so from llvm
|
|
|
|
mk_add_options "export LD_LIBRARY_PATH=$topsrcdir/clang/lib"
|
|
|
|
|
|
|
|
CROSS_CCTOOLS_PATH=$topsrcdir/cctools
|
2016-12-08 02:11:40 +03:00
|
|
|
# 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`.
|
2015-07-14 14:02:22 +03:00
|
|
|
CROSS_SYSROOT=$topsrcdir/MacOSX10.7.sdk
|
|
|
|
CROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworks
|
|
|
|
FLAGS="-target x86_64-apple-darwin10 -mlinker-version=136 -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-config
|
|
|
|
export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip"
|
|
|
|
export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin10-
|
2015-09-29 19:59:12 +03:00
|
|
|
export DSYMUTIL=$topsrcdir/clang/bin/llvm-dsymutil
|
2017-02-07 07:04:55 +03:00
|
|
|
export GENISOIMAGE=$topsrcdir/genisoimage/genisoimage
|
2015-09-10 13:44:24 +03:00
|
|
|
export DMG_TOOL=$topsrcdir/dmg/dmg
|
2015-07-14 14:02:22 +03:00
|
|
|
|
2015-09-20 20:02:30 +03:00
|
|
|
export HOST_CC="$topsrcdir/clang/bin/clang"
|
|
|
|
export HOST_CXX="$topsrcdir/clang/bin/clang++"
|
|
|
|
export HOST_CPP="$topsrcdir/clang/bin/clang -E"
|
2015-09-11 13:48:50 +03:00
|
|
|
export HOST_CFLAGS="-g"
|
|
|
|
export HOST_CXXFLAGS="-g"
|
2015-07-14 14:02:22 +03:00
|
|
|
export HOST_LDFLAGS="-g"
|
|
|
|
|
|
|
|
ac_add_options --target=x86_64-apple-darwin
|
|
|
|
ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
|
|
|
|
|
2015-09-27 00:27:50 +03:00
|
|
|
# Enable static analysis checks by default on OSX cross builds.
|
|
|
|
ac_add_options --enable-clang-plugin
|
|
|
|
|
2015-07-14 14:02:22 +03:00
|
|
|
. "$topsrcdir/build/mozconfig.cache"
|
|
|
|
|
|
|
|
export SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE=/builds/crash-stats-api.token
|