Skip to content

Commit e4482d1

Browse files
committed
Preserve env vars from windows_registry in lib.exe detection
This was an accidental regression from #387
1 parent 75213f3 commit e4482d1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,11 +1987,8 @@ impl Build {
19871987

19881988
"emar".to_string()
19891989
} else if target.contains("msvc") {
1990-
match windows_registry::find_tool(&target, "lib.exe") {
1991-
Some(t) => match t.path().to_str() {
1992-
Some(ref p) => p.to_string(),
1993-
None => "lib.exe".to_string(),
1994-
},
1990+
match windows_registry::find(&target, "lib.exe") {
1991+
Some(t) => return Ok((t, "lib.exe".to_string())),
19951992
None => "lib.exe".to_string(),
19961993
}
19971994
} else {

0 commit comments

Comments
 (0)