diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-05-26 08:44:25 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-05-26 08:44:32 +0000 |
| commit | 72b194cd50696d01b2ee510973530b8246776b9a (patch) | |
| tree | 9de6d1b6ddc34dc4a8d521dd0eec3ebc536982d0 | |
| parent | 202b14c80226e8bb48abad548b2924afefd1f979 (diff) | |
| download | rust-72b194cd50696d01b2ee510973530b8246776b9a.tar.gz rust-72b194cd50696d01b2ee510973530b8246776b9a.zip | |
Fix #[cfg(target_os)] for macOS
Fixes #1376
| -rw-r--r-- | example/mini_core_hello_world.rs | 6 |
1 files 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 |
