chore: Update mozconfig to enable jemalloc and linker lld for non-cross-compiling builds

This commit is contained in:
Mauro Balades
2024-07-20 13:55:49 +02:00
parent 6c34fc6e8d
commit 31908c8775
2 changed files with 10 additions and 7 deletions

View File

@@ -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

View File

@@ -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