We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee57ce commit 6e0967fCopy full SHA for 6e0967f
src/bootstrap/compile.rs
@@ -115,7 +115,8 @@ impl Step for Std {
115
}
116
117
let is_collecting = if let Some(path) = &builder.config.libstd_profile_generate {
118
- if compiler.stage == 1 {
+ if compiler.stage == 2 {
119
+ eprintln!("STD STAGE 2 GENERATE");
120
cargo.env("RUST_LIBSTD_PGO", "1");
121
cargo.rustflag(&format!("-Cprofile-generate={}", path));
122
// Apparently necessary to avoid overflowing the counters during
@@ -126,7 +127,8 @@ impl Step for Std {
126
127
false
128
129
} else if let Some(path) = &builder.config.libstd_profile_use {
130
131
+ eprintln!("STD STAGE 2 USE");
132
cargo.rustflag(&format!("-Cprofile-use={}", path));
133
cargo.rustflag("-Cllvm-args=-pgo-warn-missing-function");
134
true
0 commit comments