chore: Update Xvfb installation in alpha-build.sh to only run if not cross-compiling

This commit is contained in:
Mauro Balades
2024-07-22 23:39:16 +02:00
parent 7355138f14
commit 93668396da
5 changed files with 15 additions and 11 deletions

View File

@@ -13,9 +13,12 @@ ulimit -n 4096
# Check if xfvb is installed
if ! command -v Xvfb &> /dev/null
then
Xvfb :2 -screen 0 1024x768x24 &
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
export DISPLAY=:2
if ! test "$ZEN_CROSS_COMPILING"
then
Xvfb :2 -screen 0 1024x768x24 &
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
export DISPLAY=:2
fi
pnpm build
else
echo "Xvfb could not be found, running without it"

View File

@@ -30,13 +30,14 @@ export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64"
ac_add_options --disable-maintenance-service
ac_add_options --disable-bits-download
ac_add_options --disable-profiling
if test "$ZEN_GA_GENERATE_PROFILE"; then
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
ac_add_options --enable-profile-generate=cross
ac_add_options --without-wasm-sandboxed-libraries
ac_add_options --enable-proxy-bypass-protection
else
ac_add_options --disable-profiling
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