We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 514a28d + 9622053 commit f2a26b9Copy full SHA for f2a26b9
1 file changed
build.rs
@@ -23,6 +23,7 @@ fn main() {
23
println!("cargo:rustc-env=OS_VERSION={}", env!("CARGO_PKG_VERSION"));
24
}
25
26
- #[cfg(target_os = "macos")]
27
- println!("cargo:rustc-link-lib=c");
+ if Ok("macos") == env::var("CARGO_CFG_TARGET_OS").as_deref() {
+ println!("cargo:rustc-link-lib=c");
28
+ }
29
0 commit comments