Disable incremental compilation on CI

Fixes #1198
This commit is contained in:
bjorn3 2021-12-30 14:07:44 +01:00
parent c63d8f3f96
commit 40b00f4200

View File

@ -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 {