about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-07-09 18:56:17 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-07-09 18:56:17 +0200
commit8cf38181ad4506af85a5cd68b3d5a13c038f04ef (patch)
tree7702bc67fbc24f6aa656b4cb68477fee1f1f2c09 /example
parent893497c93e4a68d99642843a5d46f0c9afeb98b3 (diff)
downloadrust-8cf38181ad4506af85a5cd68b3d5a13c038f04ef.tar.gz
rust-8cf38181ad4506af85a5cd68b3d5a13c038f04ef.zip
Disable global_asm! on macOS for now
Diffstat (limited to 'example')
-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 d83fb2aece9..9c2ab5a5165 100644
--- a/example/mini_core_hello_world.rs
+++ b/example/mini_core_hello_world.rs
@@ -285,18 +285,18 @@ fn main() {
     #[cfg(not(jit))]
     test_tls();
 
-    #[cfg(not(jit))]
+    #[cfg(all(not(jit), target_os = "linux"))]
     unsafe {
         global_asm_test();
     }
 }
 
-#[cfg(not(jit))]
+#[cfg(all(not(jit), target_os = "linux"))]
 extern "C" {
     fn global_asm_test();
 }
 
-#[cfg(not(jit))]
+#[cfg(all(not(jit), target_os = "linux"))]
 global_asm! {
     "
     .global global_asm_test