summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>2018-12-11 20:57:21 +0530
committerVasudev Kamath <vasudev@copyninja.info>2018-12-11 20:57:21 +0530
commit917797f8023d441f759c03ed1612524a9fb4e4b0 (patch)
treeb0dc0e8007a86bc2cfc78c343d636c0f26a6b169
parent7cbc1d65072943aa2f8dbb4765c873f951d416b8 (diff)
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
-rw-r--r--src/cargo/core/profiles.rs3
-rw-r--r--tests/testsuite/build.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/cargo/core/profiles.rs b/src/cargo/core/profiles.rs
index 2a822022a..67e71b8fa 100644
--- a/src/cargo/core/profiles.rs
+++ b/src/cargo/core/profiles.rs
@@ -458,6 +458,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 77d127a1b..d3d4b3233 100644
--- a/tests/testsuite/build.rs
+++ b/tests/testsuite/build.rs
@@ -38,6 +38,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()
@@ -58,6 +59,7 @@ fn cargo_compile_incremental() {
).run();
}
+#[cfg(not(target_arch = "sparc64"))]
#[test]
fn incremental_profile() {
let p = project()
@@ -99,6 +101,7 @@ fn incremental_profile() {
.run();
}
+#[cfg(not(target_arch = "sparc64"))]
#[test]
fn incremental_config() {
let p = project()