Skip to content

Commit dd9af21

Browse files
authored
use 'darwin' instead of 'macos' in build.rs
That is the target_os visible in the target triple.
1 parent fef63d5 commit dd9af21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdl2-sys/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ fn link_sdl2(target_os: &str) {
355355
println!("cargo:rustc-flags=-l SDL2_mixer");
356356
} else if target_os.contains("windows") {
357357
println!("cargo:rustc-flags=-l SDL2_mixer");
358-
} else if target_os.contains("macos") {
358+
} else if target_os.contains("darwin") {
359359
if cfg!(any(mac_framework, feature="use_mac_framework")) {
360360
println!("cargo:rustc-flags=-l framework=SDL2_mixer");
361361
} else {
@@ -368,7 +368,7 @@ fn link_sdl2(target_os: &str) {
368368
println!("cargo:rustc-flags=-l SDL2_image");
369369
} else if target_os.contains("windows") {
370370
println!("cargo:rustc-flags=-l SDL2_image");
371-
} else if target_os.contains("macos") {
371+
} else if target_os.contains("darwin") {
372372
if cfg!(any(mac_framework, feature="use_mac_framework")) {
373373
println!("cargo:rustc-flags=-l framework=SDL2_image");
374374
} else {
@@ -381,7 +381,7 @@ fn link_sdl2(target_os: &str) {
381381
println!("cargo:rustc-flags=-l SDL2_ttf");
382382
} else if target_os.contains("windows") {
383383
println!("cargo:rustc-flags=-l SDL2_ttf");
384-
} else if target_os.contains("macos") {
384+
} else if target_os.contains("darwin") {
385385
if cfg!(any(mac_framework, feature="use_mac_framework")) {
386386
println!("cargo:rustc-flags=-l framework=SDL2_ttf");
387387
} else {
@@ -394,7 +394,7 @@ fn link_sdl2(target_os: &str) {
394394
println!("cargo:rustc-flags=-l SDL2_gfx");
395395
} else if target_os.contains("windows") {
396396
println!("cargo:rustc-flags=-l SDL2_gfx");
397-
} else if target_os.contains("macos") {
397+
} else if target_os.contains("darwin") {
398398
if cfg!(any(mac_framework, feature="use_mac_framework")) {
399399
println!("cargo:rustc-flags=-l framework=SDL2_gfx");
400400
} else {

0 commit comments

Comments
 (0)