mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
ad8855ed35
These are copies of the corresponding gcc-based base toolchain tasks, with FORCE_GCC and the gcc dependency removed. We also tweak things a little for those builds to actually end up green. Differential Revision: https://phabricator.services.mozilla.com/D18903 --HG-- extra : moz-landing-system : lando
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
|
|
|
|
if [ -n "$FORCE_GCC" ]; then
|
|
CC="$TOOLTOOL_DIR/gcc/bin/gcc"
|
|
CXX="$TOOLTOOL_DIR/gcc/bin/g++"
|
|
|
|
# We want to make sure we use binutils and other binaries in the tooltool
|
|
# package.
|
|
mk_add_options "export PATH=$TOOLTOOL_DIR/gcc/bin:$PATH"
|
|
else
|
|
CC="$TOOLTOOL_DIR/clang/bin/clang"
|
|
CXX="$TOOLTOOL_DIR/clang/bin/clang++"
|
|
export ENABLE_CLANG_PLUGIN=1
|
|
case "$PERFHERDER_EXTRA_OPTIONS" in
|
|
base-toolchains*)
|
|
# Clang versions < 7.0 don't support the -fcrash-diagnostics-dir flag.
|
|
;;
|
|
*)
|
|
export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
|
|
export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
|
|
;;
|
|
esac
|
|
|
|
if [ -n "$MOZ_PGO" ]; then
|
|
if [ -z "$USE_ARTIFACT" ]; then
|
|
ac_add_options --enable-lto
|
|
fi
|
|
export LLVM_PROFDATA="$TOOLTOOL_DIR/clang/bin/llvm-profdata"
|
|
export AR="$topsrcdir/clang/bin/llvm-ar"
|
|
export NM="$topsrcdir/clang/bin/llvm-nm"
|
|
export RANLIB="$topsrcdir/clang/bin/llvm-ranlib"
|
|
fi
|
|
|
|
mk_add_options "export PATH=$TOOLTOOL_DIR/binutils/bin:$PATH"
|
|
fi
|
|
|
|
. "$topsrcdir/build/unix/mozconfig.stdcxx"
|