Update Rust to 1.22.0-nightly (a47c9f870 2017-10-11)

This allows us to start experimenting with -Z thinlto
This commit is contained in:
Anthony Ramine 2017-10-09 19:02:42 +02:00
parent 82a013ae07
commit d4933148d4
3 changed files with 7 additions and 1 deletions

View file

@ -273,6 +273,7 @@ class CommandBase(object):
self.config["build"].setdefault("ccache", "")
self.config["build"].setdefault("rustflags", "")
self.config["build"].setdefault("incremental", False)
self.config["build"].setdefault("thinlto", False)
self.config.setdefault("android", {})
self.config["android"].setdefault("sdk", "")
@ -532,6 +533,8 @@ class CommandBase(object):
if geckolib:
geckolib_build_path = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8")
env["CARGO_TARGET_DIR"] = geckolib_build_path
elif self.config["build"]["thinlto"]:
env['RUSTFLAGS'] += " -Z thinlto"
return env

View file

@ -1 +1 @@
nightly-2017-10-05
nightly-2017-10-12

View file

@ -57,6 +57,9 @@ debug-mozjs = false
# Enable rustcs incremental compilation
#incremental = false
# Whether to use ThinLTO or not
#thinlto = false
# Android information
[android]
# Defaults to the value of $ANDROID_SDK, $ANDROID_NDK, $ANDROID_TOOLCHAIN, $ANDROID_PLATFORM respectively