diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-11 19:21:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-11 19:21:19 +0100 |
| commit | 844635dfa33f8c5201fb5d48fa2c9630c50256c1 (patch) | |
| tree | 621ac4e4ef9fefe022ead134789f0cf9a611fefe | |
| parent | e2496df4937651bf7a2685fdaf5b9b83bc07111c (diff) | |
| download | rust-844635dfa33f8c5201fb5d48fa2c9630c50256c1.tar.gz rust-844635dfa33f8c5201fb5d48fa2c9630c50256c1.zip | |
./miri bench: set toolchain explicitly
| -rw-r--r-- | src/tools/miri/miri-script/src/commands.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs index 21029d0b5b3..4b1cfffd4fe 100644 --- a/src/tools/miri/miri-script/src/commands.rs +++ b/src/tools/miri/miri-script/src/commands.rs @@ -409,6 +409,7 @@ impl Command { OsString::new() }; let target_flag = &target_flag; + let toolchain = active_toolchain()?; // Run the requested benchmarks for bench in benches { let current_bench = path!(benches_dir / bench / "Cargo.toml"); @@ -416,7 +417,7 @@ impl Command { // That seems to make Windows CI happy. cmd!( sh, - "{program_name} {args...} 'cargo miri run '{target_flag}' --manifest-path \"'{current_bench}'\"'" + "{program_name} {args...} 'cargo +'{toolchain}' miri run '{target_flag}' --manifest-path \"'{current_bench}'\"'" ) .run()?; } |
