Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit beffdd2

Browse files
authored
Unrolled build for rust-lang#141283
Rollup merge of rust-lang#141283 - Sol-Ell:fix-benchmarking-on-windows, r=Kobzol Allow `x perf` to find rustc.exe on Windows Related issue: rust-lang#141281
2 parents bbd3a5a + 6ac8e51 commit beffdd2

File tree

1 file changed

+5
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-1
lines changed

src/bootstrap/src/core/build_steps/perf.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use std::env::consts::EXE_EXTENSION;
12
use std::fmt::{Display, Formatter};
23

34
use crate::core::build_steps::compile::{Std, Sysroot};
@@ -160,7 +161,10 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
160161
}
161162

162163
let sysroot = builder.ensure(Sysroot::new(compiler));
163-
let rustc = sysroot.join("bin/rustc");
164+
let mut rustc = sysroot.clone();
165+
rustc.push("bin");
166+
rustc.push("rustc");
167+
rustc.set_extension(EXE_EXTENSION);
164168

165169
let rustc_perf_dir = builder.build.tempdir().join("rustc-perf");
166170
let results_dir = rustc_perf_dir.join("results");

0 commit comments

Comments
 (0)