From a132748dc2341ae0c42f8b88c924dff4181ba15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mauro=20=F0=9F=A4=99?= <91018726+mauro-balades@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:01:47 -0700 Subject: [PATCH] Update mozconfig --- configs/windows/mozconfig | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configs/windows/mozconfig b/configs/windows/mozconfig index 929c4d98f..15b446f14 100644 --- a/configs/windows/mozconfig +++ b/configs/windows/mozconfig @@ -52,13 +52,15 @@ fi export POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine" export VERBOSE=1 -if test "$ZEN_GA_GENERATE_PROFILE"; then - export CXXFLAGS="$CXXFLAGS -fprofile-generate -mllvm -enable-name-compression=false -mllvm -pgo-temporal-instrumentation -fprofile-update=atomic" - mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0" - ac_add_options --enable-profile-generate=cross -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 +if test "$ZEN_CROSS_COMPILING"; then + if test "$ZEN_GA_GENERATE_PROFILE"; then + export CXXFLAGS="$CXXFLAGS -fprofile-generate -mllvm -enable-name-compression=false -mllvm -pgo-temporal-instrumentation -fprofile-update=atomic" + mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0" + ac_add_options --enable-profile-generate=cross + 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