Rollup merge of #141283 - Sol-Ell:fix-benchmarking-on-windows, r=Kobzol
Allow `x perf` to find rustc.exe on Windows Related issue: #141281
This commit is contained in:
commit
04a7c2c66d
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use std::env::consts::EXE_EXTENSION;
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
use crate::core::build_steps::compile::{Std, Sysroot};
|
||||
|
|
@ -160,7 +161,10 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
|
|||
}
|
||||
|
||||
let sysroot = builder.ensure(Sysroot::new(compiler));
|
||||
let rustc = sysroot.join("bin/rustc");
|
||||
let mut rustc = sysroot.clone();
|
||||
rustc.push("bin");
|
||||
rustc.push("rustc");
|
||||
rustc.set_extension(EXE_EXTENSION);
|
||||
|
||||
let rustc_perf_dir = builder.build.tempdir().join("rustc-perf");
|
||||
let results_dir = rustc_perf_dir.join("results");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue