From c43d41aea7e7c076803dc27608180fb579575df2 Mon Sep 17 00:00:00 2001 From: Alex Kontos Date: Tue, 22 Aug 2023 18:04:40 +0100 Subject: [PATCH] mozconfig pgo --- .mozconfig-x86_64-pc-linux-gnu | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.mozconfig-x86_64-pc-linux-gnu b/.mozconfig-x86_64-pc-linux-gnu index b7c8fca0cab3e..2dd488458c27e 100644 --- a/.mozconfig-x86_64-pc-linux-gnu +++ b/.mozconfig-x86_64-pc-linux-gnu @@ -30,7 +30,7 @@ ac_add_options --disable-tests ac_add_options --enable-alsa ac_add_options --enable-application=browser -ac_add_options --enable-bootstrap +ac_add_options --enable-bootstrap=-clang,-sccache if test -x "$(command -v sccache)"; then ac_add_options --with-ccache=sccache elif test -f "$HOME/.mozbuild/sccache/sccache"; then @@ -38,6 +38,14 @@ elif test -f "$HOME/.mozbuild/sccache/sccache"; then fi ac_add_options --enable-install-strip ac_add_options --enable-jxl +ac_add_options --enable-linker=lld +if test "$GEN_PGO"; then + ac_add_options --enable-profile-generate +elif test "$USE_PGO"; then + ac_add_options --enable-profile-use + ac_add_options --with-pgo-jarlog=$PWD/en-US.log + ac_add_options --with-pgo-profile-path=$PWD/merged.profdata +fi ac_add_options --enable-pulseaudio ac_add_options --enable-strip if test "$WFX_RELEASE"; then