2018-09-06 05:43:08 +03:00
|
|
|
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
|
|
|
|
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
|
|
|
|
|
2018-09-12 01:52:29 +03:00
|
|
|
if [ -n "$FORCE_GCC" ]; then
|
2018-09-06 05:43:08 +03:00
|
|
|
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
|
|
|
|
|
2018-09-12 01:52:29 +03:00
|
|
|
if [ -n "$MOZ_PGO" ]; then
|
2018-09-14 20:33:45 +03:00
|
|
|
if [ -z "$USE_ARTIFACT" ]; then
|
|
|
|
ac_add_options --enable-lto
|
|
|
|
fi
|
2018-09-12 01:52:29 +03:00
|
|
|
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
|
|
|
|
|
2018-09-06 05:43:08 +03:00
|
|
|
mk_add_options "export PATH=$TOOLTOOL_DIR/binutils/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
. "$topsrcdir/build/unix/mozconfig.stdcxx"
|