@@ -260,7 +260,7 @@ impl Step for Cargotest {
260260 . arg ( & out_dir)
261261 . args ( builder. config . test_args ( ) )
262262 . env ( "RUSTC" , builder. rustc ( compiler) )
263- . env ( "RUSTDOC" , builder. rustdoc ( compiler) ) ;
263+ . env ( "RUSTDOC" , builder. rustdoc_for_compiler ( compiler) ) ;
264264 add_rustdoc_cargo_linker_args (
265265 & mut cmd,
266266 builder,
@@ -861,7 +861,7 @@ impl Step for RustdocTheme {
861861 . env ( "RUSTC_SYSROOT" , builder. sysroot ( self . compiler ) )
862862 . env ( "RUSTDOC_LIBDIR" , builder. sysroot_target_libdir ( self . compiler , self . compiler . host ) )
863863 . env ( "CFG_RELEASE_CHANNEL" , & builder. config . channel )
864- . env ( "RUSTDOC_REAL" , builder. rustdoc ( self . compiler ) )
864+ . env ( "RUSTDOC_REAL" , builder. rustdoc_for_compiler ( self . compiler ) )
865865 . env ( "RUSTC_BOOTSTRAP" , "1" ) ;
866866 cmd. args ( linker_args ( builder, self . compiler . host , LldThreads :: No , self . compiler . stage ) ) ;
867867
@@ -1020,7 +1020,11 @@ impl Step for RustdocGUI {
10201020 let mut cmd = builder. tool_cmd ( Tool :: RustdocGUITest ) ;
10211021
10221022 let out_dir = builder. test_out ( self . target ) . join ( "rustdoc-gui" ) ;
1023- build_stamp:: clear_if_dirty ( builder, & out_dir, & builder. rustdoc ( self . compiler ) ) ;
1023+ build_stamp:: clear_if_dirty (
1024+ builder,
1025+ & out_dir,
1026+ & builder. rustdoc_for_compiler ( self . compiler ) ,
1027+ ) ;
10241028
10251029 if let Some ( src) = builder. config . src . to_str ( ) {
10261030 cmd. arg ( "--rust-src" ) . arg ( src) ;
@@ -1036,7 +1040,7 @@ impl Step for RustdocGUI {
10361040
10371041 cmd. arg ( "--jobs" ) . arg ( builder. jobs ( ) . to_string ( ) ) ;
10381042
1039- cmd. env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
1043+ cmd. env ( "RUSTDOC" , builder. rustdoc_for_compiler ( self . compiler ) )
10401044 . env ( "RUSTC" , builder. rustc ( self . compiler ) ) ;
10411045
10421046 add_rustdoc_cargo_linker_args (
@@ -1710,7 +1714,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
17101714 || mode == "rustdoc-json"
17111715 || suite == "coverage-run-rustdoc"
17121716 {
1713- cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc ( compiler) ) ;
1717+ cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc_for_compiler ( compiler) ) ;
17141718 }
17151719
17161720 if mode == "rustdoc-json" {
@@ -2224,7 +2228,7 @@ impl BookTest {
22242228
22252229 // mdbook just executes a binary named "rustdoc", so we need to update
22262230 // PATH so that it points to our rustdoc.
2227- let mut rustdoc_path = builder. rustdoc ( compiler) ;
2231+ let mut rustdoc_path = builder. rustdoc_for_compiler ( compiler) ;
22282232 rustdoc_path. pop ( ) ;
22292233 let old_path = env:: var_os ( "PATH" ) . unwrap_or_default ( ) ;
22302234 let new_path = env:: join_paths ( iter:: once ( rustdoc_path) . chain ( env:: split_paths ( & old_path) ) )
0 commit comments