From 7205aaa360ba9120177fcb20dc4be502e6f4e2d7 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Sat, 10 Aug 2024 13:05:05 +0200 Subject: [PATCH] chore: Update Windows mozconfig for better optimization and compatibility --- configs/windows/mozconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/windows/mozconfig b/configs/windows/mozconfig index 285761df7..633e1bbd5 100644 --- a/configs/windows/mozconfig +++ b/configs/windows/mozconfig @@ -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