mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
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:
parent
82a013ae07
commit
d4933148d4
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue