Files
desktop/configs/macos/mozconfig

40 lines
1.2 KiB
Plaintext

# SURFER_COMPAT has a different meaning here, in macOS it means that the build is for
# x86_64, not ARM64.
unset MOZ_STDCXX_COMPAT
ac_add_options --disable-dmd
export MOZ_MACBUNDLE_ID=${appId}
export MOZ_MACBUNDLE_NAME="Zen Browser.app"
if test "$SURFER_COMPAT" = "true"; then
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
ac_add_options --target=x86_64-apple-darwin
# it crashes the builds
unset MOZ_LTO
ac_add_options --disable-lto
ac_add_options --enable-wasm-avx
ac_add_options --enable-optimize="-O3 -march=x86-64-v3"
export CFLAGS="-O3 -march=x86-64-v3"
export CPPFLAGS="-O3 -march=x86-64-v3"
export CXXFLAGS="-O3 -march=x86-64-v3"
export LDFLAGS="-Wl,-O3 -march=x86-64-v3"
export RUSTFLAGS="-C target-feature=+avx2 -C codegen-units=1"
else
ac_add_options --target=aarch64-apple-darwin
ac_add_options --enable-optimize="-O3 -march=armv8.3-a+simd"
export CFLAGS="-O3 -march=armv8.3-a+simd"
export CPPFLAGS="-O3 -march=armv8.3-a+simd"
export CXXFLAGS="-O3 -march=armv8.3-a+simd"
export LDFLAGS="-Wl,-O3 -march=armv8.3-a+simd"
export RUSTFLAGS="-C target-feature=+v8.3a -C codegen-units=1"
fi
export VERBOSE=1