mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
chore: Update alpha-build.sh script to handle xvfb-run not found and set LLVM_PROFDATA path conditionally
This commit is contained in:
8
.github/workflows/src/alpha-build.sh
vendored
8
.github/workflows/src/alpha-build.sh
vendored
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user