From 72b194cd50696d01b2ee510973530b8246776b9a Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 26 May 2023 08:44:25 +0000 Subject: [PATCH] Fix #[cfg(target_os)] for macOS Fixes #1376 --- example/mini_core_hello_world.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index e3452520e7b..5937866dea1 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -326,7 +326,7 @@ fn main() { not(jit), not(no_unstable_features), target_arch = "x86_64", - any(target_os = "linux", target_os = "darwin") + any(target_os = "linux", target_os = "macos") ))] unsafe { global_asm_test(); @@ -359,7 +359,7 @@ fn main() { not(jit), not(no_unstable_features), target_arch = "x86_64", - any(target_os = "linux", target_os = "darwin") + any(target_os = "linux", target_os = "macos") ))] extern "C" { fn global_asm_test(); @@ -375,7 +375,7 @@ global_asm! { " } -#[cfg(all(not(jit), not(no_unstable_features), target_arch = "x86_64", target_os = "darwin"))] +#[cfg(all(not(jit), not(no_unstable_features), target_arch = "x86_64", target_os = "macos"))] global_asm! { " .global _global_asm_test