u-ignoretest-jemalloc
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Sun, 12 Mar 2017 03:15:33 +0000 (03:15 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 12 Mar 2017 03:15:33 +0000 (03:15 +0000)
Gbp-Pq: Name u-ignoretest-jemalloc.patch

src/librustc_back/target/s390x_unknown_linux_gnu.rs
src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs
src/test/run-pass/allocator-default.rs

index 6e2dd6cd67c933962bac3d89eb0096aada18c4ff..671fb4f4319b35f5d1c592aee2ddf4145dac6524 100644 (file)
@@ -19,6 +19,8 @@ pub fn target() -> TargetResult {
     // Pass the -vector feature string to LLVM to respect this assumption.
     base.features = "-vector".to_string();
     base.max_atomic_width = Some(64);
+    // see #36994
+    base.exe_allocation_crate = "alloc_system".to_string();
 
     Ok(Target {
         llvm_target: "s390x-unknown-linux-gnu".to_string(),
index 02c271ab24da3185a550c14d08775e1aadcba06a..5d566c0e0b4c708563af5956a68298f15afe645e 100644 (file)
@@ -29,9 +29,11 @@ extern crate allocator_dylib2;
 // ensure we get the same error.
 //
 // So long as we CI linux/OSX we should be good.
-#[cfg(any(target_os = "linux", target_os = "macos"))]
+#[cfg(any(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64")),
+          target_os = "macos"))]
 extern crate alloc_system;
-#[cfg(not(any(target_os = "linux", target_os = "macos")))]
+#[cfg(not(any(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64")),
+              target_os = "macos")))]
 extern crate allocator1;
 
 fn main() {
index 32ed2b330118d5cd85badd30eb5f4df1192f4da7..0a02e8072b9b34bf56c98355c4fb4bd3aeca6981 100644 (file)
@@ -10,7 +10,8 @@
 
 #![feature(alloc_jemalloc)]
 
-#[cfg(any(target_os = "linux", target_os = "macos"))]
+#[cfg(any(all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64")),
+          target_os = "macos"))]
 extern crate alloc_jemalloc;
 
 fn main() {