mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
make the find_miri returned path actually exist
This commit is contained in:
+5
-1
@@ -212,7 +212,11 @@ fn find_miri() -> PathBuf {
|
||||
return path.into();
|
||||
}
|
||||
let mut path = std::env::current_exe().expect("current executable path invalid");
|
||||
path.set_file_name("miri");
|
||||
if cfg!(windows) {
|
||||
path.set_file_name("miri.exe");
|
||||
} else {
|
||||
path.set_file_name("miri");
|
||||
}
|
||||
path
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user