From d06a4ef832bb35c17bb945fa714a38779727a76d Mon Sep 17 00:00:00 2001 From: Rust Maintainers Date: Mon, 13 Aug 2018 20:37:13 +0530 Subject: [PATCH] Disable incremental builds on sparc64 Incremental builds are currently unreliable on sparc64, disable them by default for the time being. Last-Update: 2018-08-07 Gbp-Pq: Name 2007_sparc64_disable_incremental_build.patch --- src/cargo/core/profiles.rs | 3 +++ tests/testsuite/build.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/cargo/core/profiles.rs b/src/cargo/core/profiles.rs index 24fa37d3b..0f437c6bf 100644 --- a/src/cargo/core/profiles.rs +++ b/src/cargo/core/profiles.rs @@ -431,6 +431,9 @@ impl Profile { debuginfo: Some(2), debug_assertions: true, overflow_checks: true, + #[cfg(target_arch = "sparc64")] + incremental: false, + #[cfg(not(target_arch = "sparc64"))] incremental: true, ..Profile::default() } diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index 8b86e5ce3..a1e4de483 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -45,6 +45,7 @@ fn cargo_fail_with_no_stderr() { /// Check that the `CARGO_INCREMENTAL` environment variable results in /// `rustc` getting `-Zincremental` passed to it. +#[cfg(not(target_arch = "sparc64"))] #[test] fn cargo_compile_incremental() { let p = project("foo") @@ -71,6 +72,7 @@ fn cargo_compile_incremental() { ); } +#[cfg(not(target_arch = "sparc64"))] #[test] fn incremental_profile() { let p = project("foo") @@ -127,6 +129,7 @@ fn incremental_profile() { ); } +#[cfg(not(target_arch = "sparc64"))] #[test] fn incremental_config() { let p = project("foo") -- 2.30.2