Skip to content

Commit 1b07d13

Browse files
committed
Use -Zbuilt-std to build libstd on the fly from rust-src sources.
1 parent 17d7cb9 commit 1b07d13

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

collector/src/bin/rustc-perf-collector/execute.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ impl<'a> CargoProcess<'a> {
203203
loop {
204204
let mut cmd = self.base_command(self.cwd, "rustc");
205205
cmd.arg("-p").arg(self.get_pkgid(self.cwd));
206+
cmd.arg("-Zbuild-std")
207+
.arg("--target")
208+
.arg(self.compiler.triple);
206209
match self.build_kind {
207210
BuildKind::Check => {
208211
cmd.arg("--profile").arg("check");
@@ -544,9 +547,7 @@ impl<'a> Processor for ProfileProcessor<'a> {
544547

545548
// Run `summarize`.
546549
let mut summarize_cmd = Command::new("summarize");
547-
summarize_cmd
548-
.arg("summarize")
549-
.arg(&zsp_files_prefix);
550+
summarize_cmd.arg("summarize").arg(&zsp_files_prefix);
550551
let output = summarize_cmd.output()?;
551552
fs::write(&summarize_file, &output.stdout)?;
552553

0 commit comments

Comments
 (0)