Files
tubestation/.mozconfig-x86_64-pc-windows-msvc
Alex Kontos 64014ab30a perf: use more aggressive Rust optimizations
(cherry picked from commit 98a9446fb94b2b5d475c2715a33160f244df4e03)
2025-11-06 14:13:05 +00:00

66 lines
2.3 KiB
Plaintext

CROSS_BUILD=1
MSVC="14.32.31326"
WSDK="10.0.22000.0"
TOOLS=$HOME/win-cross
EXTRA_PATH="$HOME/.mozbuild/clang/bin:${TOOLS}/visual-c/tools/msvc/${MSVC}/bin/hostx64/x64:"
export WINDOWSSDKDIR="${TOOLS}/win-sdk"
export CC="$HOME/.mozbuild/clang/bin/clang-cl"
export CXX="$HOME/.mozbuild/clang/bin/clang-cl"
export DIA_SDK_PATH="${TOOLS}/dia-sdk"
export HOST_CC="$HOME/.mozbuild/clang/bin/clang"
export HOST_CXX="$HOME/.mozbuild/clang/bin/clang++"
export MIDL="${TOOLS}/wine/bin/widl"
export MOZ_INCLUDE_SOURCE_INFO=1
export MOZ_STUB_INSTALLER=1
export WIN32_REDIST_DIR="${TOOLS}/visual-c/redist/msvc/${MSVC}/x64/microsoft.vc143.crt"
export WIN_UCRT_REDIST_DIR="${WINDOWSSDKDIR}/redist/${WSDK}/ucrt/dlls/x64"
export WINE="${TOOLS}/wine/bin/wine64"
export WINEDEBUG=-all
mk_add_options "export LD_PRELOAD=${TOOLS}/liblowercase/liblowercase.so"
mk_add_options "export LOWERCASE_DIRS=${TOOLS}"
mk_add_options "export PATH=$EXTRA_PATH$PATH"
if test "$WFX_RELEASE"; then
ac_add_options --enable-lto
ac_add_options --enable-optimize="-O2 -Qvec -w -clang:-ftree-vectorize -clang:-march=core2 -clang:-mtune=haswell"
ac_add_options --enable-release
ac_add_options --enable-rust-simd
ac_add_options RUSTC_OPT_LEVEL=3
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=core2"
fi
ac_add_options --disable-bits-download
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-geckodriver
ac_add_options --disable-maintenance-service
ac_add_options --disable-parental-controls
ac_add_options --disable-profiling
ac_add_options --disable-tests
ac_add_options --disable-verify-mar
ac_add_options --enable-bootstrap
ac_add_options --enable-default-browser-agent
if test -x "$(command -v sccache)"; then
ac_add_options --with-ccache=sccache
elif test -f "$HOME/.mozbuild/sccache/sccache"; then
ac_add_options --with-ccache=$HOME/.mozbuild/sccache/sccache
fi
ac_add_options --enable-install-strip
ac_add_options --enable-strip
ac_add_options --enable-updater
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --with-app-basename=Waterfox
ac_add_options --with-app-name=waterfox
ac_add_options --with-branding=waterfox/browser/branding
ac_add_options --with-distribution-id=net.waterfox
if test -f "$PWD/browser/locales/l10n"; then
ac_add_options --with-l10n-base=$PWD/browser/locales/l10n
fi
MOZ_REQUIRE_SIGNING=