mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-22 23:35:37 +00:00
32 lines
896 B
Plaintext
32 lines
896 B
Plaintext
|
|
if test -d "$HOME/.mozbuild/clang/bin"; then
|
|
export CC="$HOME"/.mozbuild/clang/bin/clang
|
|
export CXX="$HOME"/.mozbuild/clang/bin/clang++
|
|
else
|
|
export CC=clang
|
|
export CXX=clang++
|
|
fi
|
|
|
|
if test "$ZEN_RELEASE"; then
|
|
|
|
ac_add_options --disable-dmd
|
|
ac_add_options --enable-linker=lld
|
|
ac_add_options --disable-elf-hack
|
|
|
|
ac_add_options --enable-install-strip
|
|
ac_add_options --enable-strip
|
|
export STRIP_FLAGS="--strip-debug --strip-unneeded"
|
|
|
|
if [ -f /home/runner/.mozbuild/sccache/sccache ]; then
|
|
mk_add_options 'export RUSTC_WRAPPER=/home/runner/.mozbuild/sccache/sccache'
|
|
mk_add_options 'export CCACHE_CPP2=yes'
|
|
ac_add_options --with-ccache=/home/runner/.mozbuild/sccache/sccache
|
|
mk_add_options 'export SCCACHE_GHA_ENABLED=on'
|
|
fi
|
|
|
|
export MOZ_PGO=1
|
|
ac_add_options MOZ_PGO=1
|
|
fi
|
|
|
|
ac_add_options --target=x86_64-pc-linux
|