mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
083b5bc70f
As the data in the bug shows, the current default of opt-level=2 is several minutes slower at compiling than opt-level=1. This slows down builds significantly and the added benefits of running opt-level=2 for local development can't be justified for the common/default case. This commit changes the default for local builds from opt-level=2 to opt-level=1. --enable-release (what we use for builds shipped to users) will imply opt-level=2. --enable-optimize (the default) will use opt-level=1, and --disable-optimize will use opt-level=0. The RUSTC_OPT_LEVEL environment variable in mozconfigs can be used to set an explicit opt-level level, regardless of what other configure options are set. This includes the other potential values, "s" and "z." A side-effect of this change is that -Copt-level is now *always* specified by the build system. Before, it was only specified if the value was adjusted to 0 for --disable-optimize builds. MozReview-Commit-ID: 67KX5qScnFc --HG-- extra : rebase_source : dac0134e952151992eee23e017e9a29f84b05172 extra : intermediate-source : c3a7cc11a987aedb81332f1a03cd082ab0ab0cb8 extra : source : 360827b8a5956d58f7f0200431d3a44c57ce8dc4 |
||
---|---|---|
.. | ||
.flake8 | ||
android-ndk.configure | ||
checks.configure | ||
compile-checks.configure | ||
compilers-util.configure | ||
headers.configure | ||
init.configure | ||
java.configure | ||
keyfiles.configure | ||
memory.configure | ||
old.configure | ||
pkg.configure | ||
rust.configure | ||
toolchain.configure | ||
util.configure | ||
warnings.configure | ||
windows.configure |