gecko-dev/build/moz.configure
Gregory Szorc 083b5bc70f Bug 1411081 - Use opt-level=1 for rustc in default configuration; r=glandium
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
2017-10-24 16:48:58 -07:00
..
.flake8 Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
android-ndk.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
checks.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
compile-checks.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
compilers-util.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
headers.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
init.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
java.configure Bug 1352599 - Part 2: Add PROGUARD_JAR configure option. r=chmanchester 2017-10-12 14:28:31 -07:00
keyfiles.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
memory.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
old.configure Bug 1411081 - Move --enable-optimize/MOZ_OPTIMIZE to moz.configure; r=glandium 2017-10-24 19:54:48 -07:00
pkg.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
rust.configure Bug 1408567 - Require Rust 1.20.0 or newer. r=nalexander 2017-10-13 15:08:21 -07:00
toolchain.configure Bug 1411081 - Use opt-level=1 for rustc in default configuration; r=glandium 2017-10-24 16:48:58 -07:00
util.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00
warnings.configure Bug 1406618 - Enable gcc -Wduplicated-cond warnings. r=glandium 2017-10-05 23:14:02 -07:00
windows.configure Bug 1406668 - Make build/moz.configure/*.configure compliant to the pep8 format + add to the list of directories to check r=glandium 2017-10-12 15:22:59 +02:00