Skip to content

Commit a52478a

Browse files
committed
Ignore stdout when performing PGO
It is very spammy.
1 parent b8cf608 commit a52478a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xtask/src/dist.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,14 @@ fn gather_pgo_profile<'a>(
176176
cmd_gather.run().context("cannot build rust-analyzer with PGO instrumentation")?;
177177

178178
// Run RA on itself to gather profiles
179+
eprintln!("Training RA on itself...");
179180
let train_crate = ".";
180181
cmd!(
181182
sh,
182183
"target/{target}/release/rust-analyzer analysis-stats {train_crate} --run-all-ide-things"
183184
)
185+
// analysis-stats produces an enormous amount of output on stdout
186+
.ignore_stdout()
184187
.run()
185188
.context("cannot generate PGO profiles")?;
186189

0 commit comments

Comments
 (0)