Skip to content

Commit 1dcd4f9

Browse files
committed
Fix rustc path construction in perf function.
1 parent a8e4c68 commit 1dcd4f9

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

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

33
use crate::core::build_steps::compile::{Std, Sysroot};
44
use crate::core::build_steps::tool::{RustcPerf, Rustdoc};
@@ -160,7 +160,10 @@ Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
160160
}
161161

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

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

0 commit comments

Comments
 (0)