Skip to content

Commit 40b00f4

Browse files
committed
Disable incremental compilation on CI
Fixes #1198
1 parent c63d8f3 commit 40b00f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: build_system/build_backend.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ pub(crate) fn build_backend(
1414

1515
let mut rustflags = env::var("RUSTFLAGS").unwrap_or_default();
1616

17-
// Deny warnings on CI
1817
if env::var("CI").as_ref().map(|val| &**val) == Ok("true") {
18+
// Deny warnings on CI
1919
rustflags += " -Dwarnings";
20+
21+
// Disabling incr comp reduces cache size and incr comp doesn't save as much on CI anyway
22+
cmd.env("CARGO_BUILD_INCREMENTAL", "false");
2023
}
2124

2225
if use_unstable_features {

0 commit comments

Comments
 (0)