mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-25 08:44:11 +00:00
chore: Update mozconfig to enable jemalloc and linker lld for non-cross-compiling builds
This commit is contained in:
@@ -43,13 +43,16 @@ if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --disable-parental-controls
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --enable-jemalloc
|
||||
mk_add_options MOZ_PARALLEL_COMPILE=1
|
||||
mk_add_options MOZ_CRASHREPORTER=0
|
||||
mk_add_options MOZ_DATA_REPORTING=0
|
||||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=0
|
||||
|
||||
if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
ac_add_options --enable-jemalloc
|
||||
ac_add_options --enable-linker=lld
|
||||
fi
|
||||
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-sandbox
|
||||
@@ -60,6 +63,12 @@ if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --disable-profiling
|
||||
ac_add_options --disable-rust-tests
|
||||
|
||||
if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
export MOZ_LTO=full
|
||||
ac_add_options MOZ_LTO=full
|
||||
ac_add_options --enable-lto=full
|
||||
fi
|
||||
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
|
||||
|
||||
@@ -2,14 +2,8 @@ POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-gre
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-optimize="-mcpu=apple-m1 -O3 -w"
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options RUSTC_OPT_LEVEL=3
|
||||
export MOZILLA_OFFICIAL=1
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=apple-m1"
|
||||
fi
|
||||
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --target=aarch64-apple-darwin
|
||||
mk_add_options AUTOCLOBBER=1
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
|
||||
Reference in New Issue
Block a user