зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #19763 - Restore the ability to disable incremental compilation (from servo:unincremental); r=nox
It became the default in debug mode in the last Rust/Cargo update. Source-Repo: https://github.com/servo/servo Source-Revision: f3220eab1e6f39b4817e5ea62755a4dc6cb15c87 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 4c8b3a97295f23d54960825c96e55038bbd395dd
This commit is contained in:
Родитель
4a3781e4c9
Коммит
8ff5dd951d
|
@ -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", {})
|
||||
|
@ -296,10 +296,6 @@ class CommandBase(object):
|
|||
|
||||
def set_use_geckolib_toolchain(self, use_geckolib_toolchain=True):
|
||||
self._use_geckolib_toolchain = use_geckolib_toolchain
|
||||
if use_geckolib_toolchain:
|
||||
# We use Cargo Nightly 1.24 with Rust 1.22,
|
||||
# it passes `-C incremental` to rustc, which is new in Rust 1.24.
|
||||
self.config["build"]["incremental"] = False
|
||||
|
||||
def toolchain(self):
|
||||
if self._use_geckolib_toolchain:
|
||||
|
@ -439,6 +435,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":
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# Copy this file to .servobuild in the Servo root directory
|
||||
# Be sure to set the cache-dir correctly, otherwise extra
|
||||
# copies of the Rust compiler may get downloaded
|
||||
|
||||
# Paths starting with "./" are relative to the repo root
|
||||
|
||||
|
@ -40,8 +38,13 @@ 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
|
||||
# Cargo’s default is to enable it in debug mode but not in release mode.
|
||||
# Leaving this key unspecified makes mach keep Cargo’s default.
|
||||
# It can be set to true or false in order to always enable or always disable
|
||||
# incremental compilation.
|
||||
#incremental = false
|
||||
#incremental = true
|
||||
|
||||
# Whether to use ThinLTO or not
|
||||
#thinlto = false
|
||||
|
|
Загрузка…
Ссылка в новой задаче