Browse Source

Avoid usage of cfg!

Harmful for cross-compiling situations
add-rc-path
Alex Crichton 10 years ago
parent
commit
de44a382b0
  1. 2
      src/lib.rs

2
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 {

Loading…
Cancel
Save