aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-01-14 01:38:37 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-01-14 01:38:37 +0100
commitfe0d2866f12aabedca5cc4394d642a5bf0e30fbe (patch)
treeec9da72482c0666e842ccd389597d643b0f6403e /python/servo/command_base.py
parent7b92eb932b34ce1a4b823b2571a50a928491b4b2 (diff)
downloadservo-fe0d2866f12aabedca5cc4394d642a5bf0e30fbe.tar.gz
servo-fe0d2866f12aabedca5cc4394d642a5bf0e30fbe.zip
Restore the ability to disable incremental compilation
It became the default in debug mode in the last Rust/Cargo update.
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py4
1 files changed, 3 insertions, 1 deletions
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":