Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore the ability to disable incremental compilation #19763

Merged
merged 4 commits into from Jan 18, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -278,7 +278,7 @@ def resolverelative(category, key):
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 @@ def resolverelative(category, key):

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 @@ def package_dir(package):

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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.