diff --git a/src/lib.rs b/src/lib.rs index 9509cfe..a31eefd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -279,7 +279,7 @@ impl Config { ("CC", "cl", "gcc", "cc") }; - get_var(env).unwrap_or(if cfg!(windows) { + get_var(env).unwrap_or(if target.contains("windows") { if self.target.contains("msvc") { msvc.to_string() } else {