Browse Source

find_tool_in_vs15_path(): Filter nonexistent executables

Should probably return a dedicated "uh oh, that Visual Studio
installation is broken" error rather than just None, but for now, it
matches the behavior of the compiler find functions.
wintest
nmlgc 7 years ago
parent
commit
689b549fca
  1. 1
      src/windows_registry.rs

1
src/windows_registry.rs

@ -251,6 +251,7 @@ mod impl_ {
.and_then(|instance| instance.installation_path().ok())
})
.map(|ip| PathBuf::from(ip).join(tool))
.filter(|ref path| path.is_file())
.map(|path| {
let mut tool = Tool::new(path);
if target.contains("x86_64") {

Loading…
Cancel
Save