Move incr comp enable to the build system
This commit is contained in:
parent
f97670a315
commit
c63d8f3f96
2 changed files with 2 additions and 3 deletions
|
@ -40,9 +40,6 @@ unstable-features = ["jit", "inline_asm"]
|
|||
jit = ["cranelift-jit", "libloading"]
|
||||
inline_asm = []
|
||||
|
||||
[profile.release.package.rustc_codegen_cranelift]
|
||||
incremental = true
|
||||
|
||||
# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
|
||||
# execution time of build scripts is so fast that optimizing them slows down the total build time.
|
||||
[profile.release.build-override]
|
||||
|
|
|
@ -10,6 +10,8 @@ pub(crate) fn build_backend(
|
|||
let mut cmd = Command::new("cargo");
|
||||
cmd.arg("build").arg("--target").arg(host_triple);
|
||||
|
||||
cmd.env("CARGO_BUILD_INCREMENTAL", "true"); // Force incr comp even in release mode
|
||||
|
||||
let mut rustflags = env::var("RUSTFLAGS").unwrap_or_default();
|
||||
|
||||
// Deny warnings on CI
|
||||
|
|
Loading…
Add table
Reference in a new issue