chore: Update alpha-build.sh script to handle xvfb-run not found and disable profiling

This commit is contained in:
Mauro Balades
2024-07-20 09:24:34 +02:00
parent e3c465b59a
commit 0313f1aa14
3 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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