Disable PGO for aarch64 builds when ZEN_GA_DISABLE_PGO flag is set in Windows build configuration

This commit is contained in:
mr. M
2025-01-07 23:53:17 +01:00
parent 203163de43
commit 2d4f9d4d7b
2 changed files with 9 additions and 4 deletions

View File

@@ -217,6 +217,7 @@ jobs:
if: ${{ !(inputs.generate-gpo && matrix.arch == 'aarch64') }}
env:
SURFER_COMPAT: ${{ matrix.arch }}
ZEN_GA_DISABLE_PGO: true
run: |
set -x
export SURFER_PLATFORM="win32"

View File

@@ -58,9 +58,13 @@ if test "$ZEN_CROSS_COMPILING"; then
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
ac_add_options --enable-profile-generate=cross
elif test "$SURFER_COMPAT" = "x86_64"; then
# Dont use PGO on aarch64 builds
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged.profdata
ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US.log
# Dont use PGO on aarch64 builds and the ZEN_GA_DISABLE_PGO flag is not set
if test "$ZEN_GA_DISABLE_PGO"; then
echo "PGO is disabled"
else
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-profile-path=$(echo ~)/artifact/merged.profdata
ac_add_options --with-pgo-jarlog=$(echo ~)/artifact/en-US.log
fi
fi
fi