Browse Source

Preserve env vars from `windows_registry` in `lib.exe` detection

This was an accidental regression from #387
urgh
Alex Crichton 6 years ago
parent
commit
e4482d1790
  1. 7
      src/lib.rs

7
src/lib.rs

@ -1987,11 +1987,8 @@ impl Build {
"emar".to_string()
} else if target.contains("msvc") {
match windows_registry::find_tool(&target, "lib.exe") {
Some(t) => match t.path().to_str() {
Some(ref p) => p.to_string(),
None => "lib.exe".to_string(),
},
match windows_registry::find(&target, "lib.exe") {
Some(t) => return Ok((t, "lib.exe".to_string())),
None => "lib.exe".to_string(),
}
} else {

Loading…
Cancel
Save