File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ impl Step for Std {
115
115
}
116
116
117
117
let is_collecting = if let Some ( path) = & builder. config . libstd_profile_generate {
118
- if compiler. stage == 1 {
118
+ if compiler. stage == 2 {
119
+ eprintln ! ( "STD STAGE 2 GENERATE" ) ;
119
120
cargo. env ( "RUST_LIBSTD_PGO" , "1" ) ;
120
121
cargo. rustflag ( & format ! ( "-Cprofile-generate={}" , path) ) ;
121
122
// Apparently necessary to avoid overflowing the counters during
@@ -126,7 +127,8 @@ impl Step for Std {
126
127
false
127
128
}
128
129
} else if let Some ( path) = & builder. config . libstd_profile_use {
129
- if compiler. stage == 1 {
130
+ if compiler. stage == 2 {
131
+ eprintln ! ( "STD STAGE 2 USE" ) ;
130
132
cargo. rustflag ( & format ! ( "-Cprofile-use={}" , path) ) ;
131
133
cargo. rustflag ( "-Cllvm-args=-pgo-warn-missing-function" ) ;
132
134
true
You can’t perform that action at this time.
0 commit comments