diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-11 18:48:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 18:48:35 +0000 |
| commit | 6748167e808eeb177a7c47d1cae3a17dcb6c29b6 (patch) | |
| tree | 621ac4e4ef9fefe022ead134789f0cf9a611fefe | |
| parent | e2496df4937651bf7a2685fdaf5b9b83bc07111c (diff) | |
| parent | 844635dfa33f8c5201fb5d48fa2c9630c50256c1 (diff) | |
| download | rust-6748167e808eeb177a7c47d1cae3a17dcb6c29b6.tar.gz rust-6748167e808eeb177a7c47d1cae3a17dcb6c29b6.zip | |
Merge pull request #4087 from RalfJung/bench-toolchain
./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()?; } |
