From fe0d2866f12aabedca5cc4394d642a5bf0e30fbe Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sun, 14 Jan 2018 01:38:37 +0100 Subject: Restore the ability to disable incremental compilation It became the default in debug mode in the last Rust/Cargo update. --- python/servo/command_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/servo/command_base.py') diff --git a/python/servo/command_base.py b/python/servo/command_base.py index bfc7192df97..b58ac21807f 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -278,7 +278,7 @@ class CommandBase(object): self.config["build"].setdefault("debug-mozjs", False) self.config["build"].setdefault("ccache", "") self.config["build"].setdefault("rustflags", "") - self.config["build"].setdefault("incremental", False) + self.config["build"].setdefault("incremental", None) self.config["build"].setdefault("thinlto", False) self.config.setdefault("android", {}) @@ -439,6 +439,8 @@ class CommandBase(object): if self.config["build"]["incremental"]: env["CARGO_INCREMENTAL"] = "1" + elif self.config["build"]["incremental"] is not None: + env["CARGO_INCREMENTAL"] = "0" if extra_lib: if sys.platform == "darwin": -- cgit v1.2.3