diff options
-rw-r--r-- | python/servo/command_base.py | 4 | ||||
-rw-r--r-- | servobuild.example | 4 |
2 files changed, 6 insertions, 2 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": diff --git a/servobuild.example b/servobuild.example index 98dd8edaf9c..a328e24725e 100644 --- a/servobuild.example +++ b/servobuild.example @@ -40,8 +40,10 @@ debug-mozjs = false # Any optional flags that will be added to $RUSTFLAGS #rustflags = "" -# Enable rustc’s incremental compilation +# Enable or disable rustc’s incremental compilation +# The default is enabled in debug mode only. #incremental = false +#incremental = true # Whether to use ThinLTO or not #thinlto = false |