Skip to content

Commit 72b194c

Browse files
committed
Fix #[cfg(target_os)] for macOS
Fixes rust-lang#1376
1 parent 202b14c commit 72b194c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/mini_core_hello_world.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ fn main() {
326326
not(jit),
327327
not(no_unstable_features),
328328
target_arch = "x86_64",
329-
any(target_os = "linux", target_os = "darwin")
329+
any(target_os = "linux", target_os = "macos")
330330
))]
331331
unsafe {
332332
global_asm_test();
@@ -359,7 +359,7 @@ fn main() {
359359
not(jit),
360360
not(no_unstable_features),
361361
target_arch = "x86_64",
362-
any(target_os = "linux", target_os = "darwin")
362+
any(target_os = "linux", target_os = "macos")
363363
))]
364364
extern "C" {
365365
fn global_asm_test();
@@ -375,7 +375,7 @@ global_asm! {
375375
"
376376
}
377377

378-
#[cfg(all(not(jit), not(no_unstable_features), target_arch = "x86_64", target_os = "darwin"))]
378+
#[cfg(all(not(jit), not(no_unstable_features), target_arch = "x86_64", target_os = "macos"))]
379379
global_asm! {
380380
"
381381
.global _global_asm_test

0 commit comments

Comments
 (0)