perf: use more aggressive Rust optimizations
(cherry picked from commit 98a9446fb94b2b5d475c2715a33160f244df4e03)
This commit is contained in:
@@ -18,7 +18,11 @@ unset MOZ_STDCXX_COMPAT
|
||||
|
||||
if test "$WFX_RELEASE"; then
|
||||
ac_add_options --enable-lto
|
||||
ac_add_options --enable-optimize="-O3 -mcpu=apple-m1 -w"
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options RUSTC_OPT_LEVEL=3
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=apple-m1"
|
||||
fi
|
||||
|
||||
ac_add_options --disable-crashreporter
|
||||
@@ -39,8 +43,6 @@ 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-optimize="-O3 -mcpu=apple-m1 -w"
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-updater
|
||||
|
||||
|
||||
@@ -18,7 +18,11 @@ unset MOZ_STDCXX_COMPAT
|
||||
|
||||
if test "$WFX_RELEASE"; then
|
||||
ac_add_options --enable-lto
|
||||
ac_add_options --enable-optimize="-O3 -march=nehalem -mtune=haswell -w"
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options RUSTC_OPT_LEVEL=3
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=nehalem"
|
||||
fi
|
||||
|
||||
ac_add_options --disable-crashreporter
|
||||
@@ -39,8 +43,6 @@ 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-optimize="-O3 -march=nehalem -mtune=haswell -w"
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-updater
|
||||
|
||||
|
||||
@@ -11,7 +11,11 @@ fi
|
||||
|
||||
if test "$WFX_RELEASE"; then
|
||||
ac_add_options --enable-lto
|
||||
ac_add_options --enable-optimize="-O3 -march=core2 -mtune=haswell -w"
|
||||
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-crashreporter
|
||||
@@ -31,9 +35,7 @@ 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-optimize="-O3 -march=core2 -mtune=haswell -w"
|
||||
ac_add_options --enable-pulseaudio
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-updater
|
||||
|
||||
@@ -50,7 +52,6 @@ if test -f "$PWD/mozilla-api"; then
|
||||
ac_add_options --with-mozilla-api-keyfile="$PWD"/mozilla-api
|
||||
fi
|
||||
|
||||
export RUSTC_OPT_LEVEL=2
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
mk_add_options AUTOCLOBBER=1
|
||||
MOZ_REQUIRE_SIGNING=
|
||||
|
||||
@@ -14,7 +14,6 @@ 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 RUSTC_OPT_LEVEL=2
|
||||
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"
|
||||
@@ -26,7 +25,11 @@ 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
|
||||
@@ -48,8 +51,6 @@ 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-optimize="-O2 -Qvec -w -clang:-ftree-vectorize -clang:-march=core2 -clang:-mtune=haswell"
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-updater
|
||||
|
||||
|
||||
Reference in New Issue
Block a user