From 0313f1aa1458e52ddbf72a457517a6918ad0858d Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Sat, 20 Jul 2024 09:24:34 +0200 Subject: [PATCH] chore: Update alpha-build.sh script to handle xvfb-run not found and disable profiling --- .github/workflows/src/alpha-build.sh | 1 + .github/workflows/src/windows_mozconfig | 1 + configs/common/mozconfig | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/src/alpha-build.sh b/.github/workflows/src/alpha-build.sh index 2093036ca..446d461e2 100644 --- a/.github/workflows/src/alpha-build.sh +++ b/.github/workflows/src/alpha-build.sh @@ -11,6 +11,7 @@ fi # Check if xfvb is installed if ! command -v Xvfb &> /dev/null then + ulimit -n 4096 Xvfb :2 -screen 0 1024x768x24 & export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata export DISPLAY=:2 diff --git a/.github/workflows/src/windows_mozconfig b/.github/workflows/src/windows_mozconfig index 1b6d49647..5598dd3d1 100644 --- a/.github/workflows/src/windows_mozconfig +++ b/.github/workflows/src/windows_mozconfig @@ -30,6 +30,7 @@ ac_add_options --enable-default-browser-agent ac_add_options --enable-install-strip ac_add_options --enable-jxl ac_add_options --disable-maintenance-service +ac_add_options --disable-profiling ac_add_options --disable-bits-download diff --git a/configs/common/mozconfig b/configs/common/mozconfig index 10cc3935a..34a77c94a 100644 --- a/configs/common/mozconfig +++ b/configs/common/mozconfig @@ -64,6 +64,10 @@ if test "$ZEN_RELEASE"; then export MOZ_LTO=full ac_add_options MOZ_LTO=full ac_add_options --enable-lto=full + else + export MOZ_LTO=cross,full + ac_add_options MOZ_LTO=cross,full + ac_add_options --enable-lto=cross,full fi mk_add_options MOZILLA_OFFICIAL=1