Skip to content

Commit c63d8f3

Browse files
committed
Move incr comp enable to the build system
1 parent f97670a commit c63d8f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ unstable-features = ["jit", "inline_asm"]
4040
jit = ["cranelift-jit", "libloading"]
4141
inline_asm = []
4242

43-
[profile.release.package.rustc_codegen_cranelift]
44-
incremental = true
45-
4643
# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
4744
# execution time of build scripts is so fast that optimizing them slows down the total build time.
4845
[profile.release.build-override]

Diff for: build_system/build_backend.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub(crate) fn build_backend(
1010
let mut cmd = Command::new("cargo");
1111
cmd.arg("build").arg("--target").arg(host_triple);
1212

13+
cmd.env("CARGO_BUILD_INCREMENTAL", "true"); // Force incr comp even in release mode
14+
1315
let mut rustflags = env::var("RUSTFLAGS").unwrap_or_default();
1416

1517
// Deny warnings on CI

0 commit comments

Comments
 (0)