diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-30 14:07:44 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-30 14:07:58 +0100 |
| commit | 40b00f4200fbdeefd11815398cb46394b8cb0a5e (patch) | |
| tree | d9422274108e8630517211592a954df23bf0eac3 | |
| parent | c63d8f3f9634ee9dd692a13fd555ee5030984e2f (diff) | |
| download | rust-40b00f4200fbdeefd11815398cb46394b8cb0a5e.tar.gz rust-40b00f4200fbdeefd11815398cb46394b8cb0a5e.zip | |
Disable incremental compilation on CI
Fixes #1198
| -rw-r--r-- | build_system/build_backend.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_system/build_backend.rs b/build_system/build_backend.rs index 41f311d307b..1382c7e5379 100644 --- a/build_system/build_backend.rs +++ b/build_system/build_backend.rs @@ -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 { |
