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.
1 parent a356120 commit 0baf910Copy full SHA for 0baf910
libssh-rs-sys/build.rs
@@ -29,6 +29,7 @@ fn main() {
29
let openssl_version = u64::from_str_radix(&openssl_version, 16).unwrap();
30
31
let target = std::env::var("TARGET").unwrap();
32
+ let target_family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap();
33
cfg.define("GLOBAL_CLIENT_CONFIG", Some("\"/etc/ssh/ssh_config\""));
34
cfg.define(
35
"GLOBAL_BIND_CONFIG",
@@ -240,10 +241,10 @@ fn main() {
240
241
cfg.file(&format!("vendored/src/{}", f));
242
}
243
- if cfg!(unix) {
244
+ if target_family == "unix" {
245
cfg.file("vendored/src/threads/pthread.c");
246
- if cfg!(windows) {
247
+ if target_family == "windows" {
248
cfg.file("vendored/src/threads/winlocks.c");
249
250
cfg.compile("libssh");
0 commit comments