chore: Update Windows mozconfig for better optimization and compatibility

This commit is contained in:
Mauro Balades
2024-08-10 13:05:05 +02:00
parent ee5b193785
commit 7205aaa360

View File

@@ -35,13 +35,13 @@ ac_add_options --disable-bits-download
ac_add_options --without-wasm-sandboxed-libraries
if test "$SURFER_COMPAT" = "true"; then
ac_add_options --enable-optimize="-O3 -mavx -maes -w -ftree-vectorize"
ac_add_options --enable-optimize="-O3 -w -ftree-vectorize"
export CFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
export CPPFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
export CXXFLAGS="-mavx -maes -mtune=haswell -march=x86-64"
export CFLAGS="-mtune=haswell -march=x86-64"
export CPPFLAGS="-mtune=haswell -march=x86-64"
export CXXFLAGS="-mtune=haswell -march=x86-64"
export LDFLAGS="-Wl,-O3"
export RUSTFLAGS="-C target-feature=+avx -C codegen-units=1 -Ctarget-cpu=x86-64"
export RUSTFLAGS="-C codegen-units=1 -Ctarget-cpu=x86-64"
else
ac_add_options --enable-optimize="-O2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -Xclang -ftree-vectorize -w"
ac_add_options --enable-wasm-avx