@@ -721,29 +721,29 @@ impl<'a> Builder<'a> {
721
721
// This is for the original compiler, but if we're forced to use stage 1, then
722
722
// std/test/rustc stamps won't exist in stage 2, so we need to get those from stage 1, since
723
723
// we copy the libs forward.
724
- let compiler = if self . force_use_stage1 ( compiler, target) {
724
+ let cmp = if self . force_use_stage1 ( compiler, target) {
725
725
self . compiler ( 1 , compiler. host )
726
726
} else {
727
727
compiler
728
728
} ;
729
729
730
730
let libstd_stamp = match cmd {
731
- "check" => check:: libstd_stamp ( self , compiler , target) ,
732
- _ => compile:: libstd_stamp ( self , compiler , target) ,
731
+ "check" => check:: libstd_stamp ( self , cmp , target) ,
732
+ _ => compile:: libstd_stamp ( self , cmp , target) ,
733
733
} ;
734
734
735
735
let libtest_stamp = match cmd {
736
- "check" => check:: libtest_stamp ( self , compiler , target) ,
737
- _ => compile:: libstd_stamp ( self , compiler , target) ,
736
+ "check" => check:: libtest_stamp ( self , cmp , target) ,
737
+ _ => compile:: libstd_stamp ( self , cmp , target) ,
738
738
} ;
739
739
740
740
let librustc_stamp = match cmd {
741
- "check" => check:: librustc_stamp ( self , compiler , target) ,
742
- _ => compile:: librustc_stamp ( self , compiler , target) ,
741
+ "check" => check:: librustc_stamp ( self , cmp , target) ,
742
+ _ => compile:: librustc_stamp ( self , cmp , target) ,
743
743
} ;
744
744
745
745
if cmd == "doc" {
746
- if mode == Mode :: Rustc || mode == Mode :: ToolRustc {
746
+ if mode == Mode :: Rustc || mode == Mode :: ToolRustc || mode == Mode :: Codegen {
747
747
// This is the intended out directory for compiler documentation.
748
748
my_out = self . compiler_doc_out ( target) ;
749
749
}
0 commit comments