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