mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-23 15:55:57 +00:00
Added optimization flags
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
# Optimise builds
|
||||
# ac_add_options --enable-application=browser
|
||||
# ac_add_options --enable-hardening
|
||||
# ac_add_options --enable-rust-simd
|
||||
# ac_add_options --enable-release
|
||||
# ac_add_options --enable-optimize
|
||||
# ac_add_options --with-ccache=sccache
|
||||
# ac_add_options --disable-debug
|
||||
# ac_add_options --enable-updater
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-lto=full
|
||||
ac_add_options --enable-optimize="-march=x86-64 -msse3 -mtune=haswell -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=x86-64"
|
||||
fi
|
||||
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --enable-pulseaudio
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-alsa
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
|
||||
Reference in New Issue
Block a user