Skip to content

Commit d7822b3

Browse files
authored
Merge pull request #4087 from RalfJung/bench-toolchain
./miri bench: set toolchain explicitly
2 parents f0fe74f + f47b2ee commit d7822b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

miri-script/src/commands.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,15 @@ impl Command {
409409
OsString::new()
410410
};
411411
let target_flag = &target_flag;
412+
let toolchain = active_toolchain()?;
412413
// Run the requested benchmarks
413414
for bench in benches {
414415
let current_bench = path!(benches_dir / bench / "Cargo.toml");
415416
// We don't attempt to escape `current_bench`, but we wrap it in quotes.
416417
// That seems to make Windows CI happy.
417418
cmd!(
418419
sh,
419-
"{program_name} {args...} 'cargo miri run '{target_flag}' --manifest-path \"'{current_bench}'\"'"
420+
"{program_name} {args...} 'cargo +'{toolchain}' miri run '{target_flag}' --manifest-path \"'{current_bench}'\"'"
420421
)
421422
.run()?;
422423
}

0 commit comments

Comments
 (0)