mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Option configuration to enable incremental compilation.
https://internals.rust-lang.org/t/incremental-compilation-beta/4721
This commit is contained in:
parent
97cc71b661
commit
e273ecce4c
2 changed files with 10 additions and 0 deletions
|
@ -270,6 +270,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.setdefault("android", {})
|
||||
self.config["android"].setdefault("sdk", "")
|
||||
|
@ -427,6 +428,8 @@ class CommandBase(object):
|
|||
env["PATH"] = "%s%s%s" % (os.pathsep.join(extra_path), os.pathsep, env["PATH"])
|
||||
|
||||
env["CARGO_HOME"] = self.config["tools"]["cargo-home-dir"]
|
||||
if self.config["build"]["incremental"]:
|
||||
env["CARGO_INCREMENTAL"] = "1"
|
||||
|
||||
if extra_lib:
|
||||
if sys.platform == "darwin":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue