Skip to content

Commit 77c58bd

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

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 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,8 @@ 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.join("bin/rustc");
165+
rustc.set_extension(EXE_EXTENSION);
164166

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

0 commit comments

Comments
 (0)