about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-06-25 19:18:53 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-07-02 12:17:26 +0200
commit1bd9a132f6111b77348b8014b849b056a4f6759a (patch)
tree473db1da917aa5152dad7104fed1d18d431ec7fc
parentdd1419a1c4843ef306f7c5955b93f601d8da2341 (diff)
downloadrust-1bd9a132f6111b77348b8014b849b056a4f6759a.tar.gz
rust-1bd9a132f6111b77348b8014b849b056a4f6759a.zip
Only test global_asm on x86_64
-rw-r--r--example/mini_core_hello_world.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs
index 6570f2bf9f2..d997ce6d1b3 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -292,7 +292,7 @@ fn main() {
     #[cfg(not(any(jit, windows)))]
     test_tls();
 
-    #[cfg(all(not(jit), target_os = "linux"))]
+    #[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
     unsafe {
         global_asm_test();
     }
@@ -303,12 +303,12 @@ fn main() {
     assert_eq!(*REF1, *REF2);
 }
 
-#[cfg(all(not(jit), target_os = "linux"))]
+#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
 extern "C" {
     fn global_asm_test();
 }
 
-#[cfg(all(not(jit), target_os = "linux"))]
+#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
 global_asm! {
     "
     .global global_asm_test