Skip to content

Commit

Permalink
Make PGO use toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
  • Loading branch information
Whissi authored and Thaodan committed Mar 6, 2023
1 parent 8f156cb commit b6f9f3d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/unix/mozconfig.unix
Expand Up @@ -4,6 +4,15 @@ if [ -n "$FORCE_GCC" ]; then
CC="$MOZ_FETCHES_DIR/gcc/bin/gcc"
CXX="$MOZ_FETCHES_DIR/gcc/bin/g++"

if [ -n "$MOZ_PGO" ]; then
if [ -z "$USE_ARTIFACT" ]; then
ac_add_options --enable-lto
fi
export AR="$topsrcdir/gcc/bin/gcc-ar"
export NM="$topsrcdir/gcc/bin/gcc-nm"
export RANLIB="$topsrcdir/gcc/bin/gcc-ranlib"
fi

# We want to make sure we use binutils and other binaries in the tooltool
# package.
mk_add_options "export PATH=$MOZ_FETCHES_DIR/gcc/bin:$MOZ_FETCHES_DIR/binutils/bin:$PATH"
Expand Down

0 comments on commit b6f9f3d

Please sign in to comment.