From: Rust Maintainers Date: Tue, 7 Aug 2018 16:44:46 +0000 (+0530) Subject: Disable incremental builds on sparc64 X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=28c79d7775857467acf7407b4ed2fa9757e98b7a;p=cargo.git 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 --- diff --git a/src/cargo/core/profiles.rs b/src/cargo/core/profiles.rs index a83ed755c..c1cc7adb3 100644 --- a/src/cargo/core/profiles.rs +++ b/src/cargo/core/profiles.rs @@ -386,6 +386,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 730c19cb3..eae03e5d0 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")