aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-10-09 19:02:42 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-10-12 14:16:04 +0200
commitd4933148d4ec0bbf07eb27ebae32224b13ce56f9 (patch)
treeb72f70a73b786014955bec3ebe4a2bbac6056156 /python
parent82a013ae073e1e546d80866710ca395bb71cab7c (diff)
downloadservo-d4933148d4ec0bbf07eb27ebae32224b13ce56f9.tar.gz
servo-d4933148d4ec0bbf07eb27ebae32224b13ce56f9.zip
Update Rust to 1.22.0-nightly (a47c9f870 2017-10-11)
This allows us to start experimenting with -Z thinlto
Diffstat (limited to 'python')
-rw-r--r--python/servo/command_base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 2e6db17aa59..77bb88886fa 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -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