Skip to content

Commit

Permalink
Use -Zbuilt-std to build libstd on the fly from rust-src sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Apr 9, 2020
1 parent 17d7cb9 commit 1b07d13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions collector/src/bin/rustc-perf-collector/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ impl<'a> CargoProcess<'a> {
loop {
let mut cmd = self.base_command(self.cwd, "rustc");
cmd.arg("-p").arg(self.get_pkgid(self.cwd));
cmd.arg("-Zbuild-std")
.arg("--target")
.arg(self.compiler.triple);
match self.build_kind {
BuildKind::Check => {
cmd.arg("--profile").arg("check");
Expand Down Expand Up @@ -544,9 +547,7 @@ impl<'a> Processor for ProfileProcessor<'a> {

// Run `summarize`.
let mut summarize_cmd = Command::new("summarize");
summarize_cmd
.arg("summarize")
.arg(&zsp_files_prefix);
summarize_cmd.arg("summarize").arg(&zsp_files_prefix);
let output = summarize_cmd.output()?;
fs::write(&summarize_file, &output.stdout)?;

Expand Down

0 comments on commit 1b07d13

Please sign in to comment.