From b42adebc39e3e4c7d82f4d903e10b84c6adb79d3 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Sun, 29 Dec 2024 15:58:49 +0100 Subject: [PATCH] Enable PGO only for release builds in macOS configuration (closes https://github.com/zen-browser/desktop/issues/3937) --- configs/macos/mozconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/macos/mozconfig b/configs/macos/mozconfig index 4bf793039..f10dd15c3 100644 --- a/configs/macos/mozconfig +++ b/configs/macos/mozconfig @@ -6,8 +6,10 @@ ac_add_options --enable-eme=widevine export MOZ_MACBUNDLE_ID=${appId} export MOZ_MACBUNDLE_NAME="Zen Browser.app" -export MOZ_PGO=1 -ac_add_options MOZ_PGO=1 +if test "$ZEN_RELEASE"; then + export MOZ_PGO=1 + ac_add_options MOZ_PGO=1 +fi if test "$SURFER_COMPAT" = "x86_64"; then ac_add_options --target=x86_64-apple-darwin