Disable incremental builds on sparc64
authorRust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 7 Aug 2018 16:44:46 +0000 (22:14 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Tue, 7 Aug 2018 16:44:46 +0000 (22:14 +0530)
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
tests/testsuite/build.rs

index a83ed755c992b88d0085697055a3d8f851fca5ce..c1cc7adb3d33e4109d930143c8b7089c07d900a9 100644 (file)
@@ -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()
         }
index 730c19cb39aaccdae45b627bf8044673686b3c02..eae03e5d09cf09b5e0d8e35a125a0b61c6f210eb 100644 (file)
@@ -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")