// 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(),
// 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() {
#![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() {