Skip to content

Commit

Permalink
Disable incremental compilation on CI
Browse files Browse the repository at this point in the history
Fixes #1198
  • Loading branch information
bjorn3 committed Dec 30, 2021
1 parent c63d8f3 commit 40b00f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build_system/build_backend.rs
Expand Up @@ -14,9 +14,12 @@ pub(crate) fn build_backend(

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

// Deny warnings on CI
if env::var("CI").as_ref().map(|val| &**val) == Ok("true") {
// Deny warnings on CI
rustflags += " -Dwarnings";

// Disabling incr comp reduces cache size and incr comp doesn't save as much on CI anyway
cmd.env("CARGO_BUILD_INCREMENTAL", "false");
}

if use_unstable_features {
Expand Down

0 comments on commit 40b00f4

Please sign in to comment.