Enable Clang plugin in Linux and macOS mozconfig files

This commit is contained in:
mr. M
2024-12-21 12:27:58 +01:00
parent 36dad75750
commit e0b125d762
2 changed files with 5 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ elif test "$ZEN_RELEASE"; then
# Optimization flags for general release
ac_add_options --enable-wasm-avx
ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpopcnt -mpclmul"
export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul"
export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul"
export CXXFLAGS="$CXXFLAGS -O3 -flto=thin -ffp-contract=fast -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -maes -mpopcnt -mpclmul"
@@ -61,6 +61,8 @@ ac_add_options --enable-alsa
ac_add_options --enable-pulseaudio
if test "$ZEN_RELEASE"; then
ac_add_options --enable-clang-plugin
# Disable DMD and ELF hacks, enable linker lld
ac_add_options --disable-dmd
ac_add_options --enable-linker=lld

View File

@@ -9,6 +9,8 @@ export MOZ_MACBUNDLE_NAME="Zen Browser.app"
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
ac_add_options --enable-clang-plugin
if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --target=x86_64-apple-darwin