chore: Update alpha-build.sh script to handle xvfb-run not found and set LLVM_PROFDATA path conditionally

This commit is contained in:
Mauro Balades
2024-07-20 10:53:19 +02:00
parent 0313f1aa14
commit dcd63d66bc
2 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,13 @@ if ! command -v Xvfb &> /dev/null
then
ulimit -n 4096
Xvfb :2 -screen 0 1024x768x24 &
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
# Check if dir exists
if [ -d $HOME/win-cross ]
then
export LLVM_PROFDATA="$HOME/win-cross/clang/bin/llvm-profdata"
else
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
fi
export DISPLAY=:2
pnpm build
else

View File

@@ -64,10 +64,6 @@ 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