We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68d329 commit 8d5b91aCopy full SHA for 8d5b91a
src/bootstrap/lib.rs
@@ -914,4 +914,12 @@ impl<'a> Compiler<'a> {
914
fn is_snapshot(&self, build: &Build) -> bool {
915
self.stage == 0 && self.host == build.config.build
916
}
917
+
918
+ /// Returns if this compiler is to be treated as a final stage one, whether
919
+ /// we're performing a full bootstrap or not. Don't do that by comparing
920
+ /// stages with `2`!
921
+ fn is_final_stage(&self, build: &Build) -> bool {
922
+ let final_stage = if build.config.full_bootstrap { 2 } else { 1 };
923
+ self.stage >= final_stage
924
+ }
925
0 commit comments