Skip to content

Commit bb52965

Browse files
committed
make the find_miri returned path actually exist
1 parent 0a9feb3 commit bb52965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cargo-miri/bin.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,11 @@ fn find_miri() -> PathBuf {
212212
return path.into();
213213
}
214214
let mut path = std::env::current_exe().expect("current executable path invalid");
215-
path.set_file_name("miri");
215+
if cfg!(windows) {
216+
path.set_file_name("miri.exe");
217+
} else {
218+
path.set_file_name("miri");
219+
}
216220
path
217221
}
218222

0 commit comments

Comments
 (0)