diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-21 11:28:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 11:28:45 +0200 |
| commit | 04a7c2c66def495a4e386c63a2ea5cd9bb670280 (patch) | |
| tree | 917cc6c3ba8813163f33f016a2f0e170b6f49763 /src | |
| parent | d30f0471c303b1864e032653811d6244a2b73e97 (diff) | |
| parent | 6ac8e512839677f673bd5cd2d5d6892b2bb9f71c (diff) | |
| download | rust-04a7c2c66def495a4e386c63a2ea5cd9bb670280.tar.gz rust-04a7c2c66def495a4e386c63a2ea5cd9bb670280.zip | |
Rollup merge of #141283 - Sol-Ell:fix-benchmarking-on-windows, r=Kobzol
Allow `x perf` to find rustc.exe on Windows Related issue: #141281
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/perf.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/perf.rs b/src/bootstrap/src/core/build_steps/perf.rs index 7f4e88bd73c..71cdb665ed4 100644 --- a/src/bootstrap/src/core/build_steps/perf.rs +++ b/src/bootstrap/src/core/build_steps/perf.rs @@ -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"); |
