File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ impl<'a> Builder<'a> {
658
658
if let Some ( ref error_format) = self . config . rustc_error_format {
659
659
cargo. env ( "RUSTC_ERROR_FORMAT" , error_format) ;
660
660
}
661
- if cmd != "build" && cmd != "check" && want_rustdoc {
661
+ if cmd != "build" && cmd != "check" && cmd != "rustc" && want_rustdoc {
662
662
cargo. env ( "RUSTDOC_LIBDIR" , self . rustc_libdir ( self . compiler ( 2 , self . config . build ) ) ) ;
663
663
}
664
664
@@ -804,7 +804,7 @@ impl<'a> Builder<'a> {
804
804
}
805
805
}
806
806
807
- if cmd == "build" && mode == Mode :: Libstd
807
+ if ( cmd == "build" || cmd == "rustc" ) && mode == Mode :: Libstd
808
808
&& self . config . extended && compiler. is_final_stage ( self )
809
809
{
810
810
cargo. env ( "RUSTC_SAVE_ANALYSIS" , "api" . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments