Update mozconfig for Zen release: enable automation and adjust compiler flags

This commit is contained in:
mr. M
2025-01-04 19:31:23 +01:00
parent d5573be1e9
commit 1e51804b74
2 changed files with 7 additions and 8 deletions

View File

@@ -25,6 +25,8 @@ export MOZ_INCLUDE_SOURCE_INFO=1
ac_add_options --enable-application=browser
if test "$ZEN_RELEASE"; then
export MOZ_AUTOMATION=1
ac_add_options --enable-clang-plugin
ac_add_options --enable-bootstrap
@@ -33,6 +35,7 @@ if test "$ZEN_RELEASE"; then
ac_add_options --disable-debug-symbols
ac_add_options --disable-debug-js-modules
ac_add_options --disable-tests
ac_add_options --disable-js-shell
ac_add_options --disable-vtune

View File

@@ -25,21 +25,17 @@ fi
ac_add_options --disable-maintenance-service
ac_add_options --disable-bits-download
ac_add_options --disable-clang-plugin
if test "$SURFER_COMPAT" = "x86_64"; then
# FIXME: For some reason, the clang plugin is not working on generic x86_64 builds
ac_add_options --disable-clang-plugin
ac_add_options --target=x86_64-pc-windows-msvc
ac_add_options --enable-eme=widevine
ac_add_options --enable-optimize="-O3 -w -ftree-vectorize"
export CFLAGS="-mtune=haswell -march=x86-64 -O2 -Qvec -w"
export CPPFLAGS="-mtune=haswell -march=x86-64 -O2 -Qvec -w"
export CXXFLAGS="-flto=thin -mtune=haswell -march=x86-64 -O2 -Qvec -w"
export LDFLAGS="-Wl,-O2"
export CFLAGS="-O3 -Qvec -w"
export CPPFLAGS="-O3 -Qvec -w"
export CXXFLAGS="-O3 -Qvec -w"
export LDFLAGS="-Wl,-O3"
export RUSTFLAGS="-Clink-args=--icf=safe -C codegen-units=1 -Ctarget-cpu=x86-64"
elif test "$SURFER_COMPAT" = "aarch64"; then
ac_add_options --target=aarch64-pc-windows-msvc