@@ -260,7 +260,7 @@ impl Step for Cargotest {
260
260
. arg ( & out_dir)
261
261
. args ( builder. config . test_args ( ) )
262
262
. env ( "RUSTC" , builder. rustc ( compiler) )
263
- . env ( "RUSTDOC" , builder. rustdoc ( compiler) ) ;
263
+ . env ( "RUSTDOC" , builder. rustdoc_for_compiler ( compiler) ) ;
264
264
add_rustdoc_cargo_linker_args (
265
265
& mut cmd,
266
266
builder,
@@ -861,7 +861,7 @@ impl Step for RustdocTheme {
861
861
. env ( "RUSTC_SYSROOT" , builder. sysroot ( self . compiler ) )
862
862
. env ( "RUSTDOC_LIBDIR" , builder. sysroot_target_libdir ( self . compiler , self . compiler . host ) )
863
863
. 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 ) )
865
865
. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
866
866
cmd. args ( linker_args ( builder, self . compiler . host , LldThreads :: No , self . compiler . stage ) ) ;
867
867
@@ -1020,7 +1020,11 @@ impl Step for RustdocGUI {
1020
1020
let mut cmd = builder. tool_cmd ( Tool :: RustdocGUITest ) ;
1021
1021
1022
1022
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
+ ) ;
1024
1028
1025
1029
if let Some ( src) = builder. config . src . to_str ( ) {
1026
1030
cmd. arg ( "--rust-src" ) . arg ( src) ;
@@ -1036,7 +1040,7 @@ impl Step for RustdocGUI {
1036
1040
1037
1041
cmd. arg ( "--jobs" ) . arg ( builder. jobs ( ) . to_string ( ) ) ;
1038
1042
1039
- cmd. env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
1043
+ cmd. env ( "RUSTDOC" , builder. rustdoc_for_compiler ( self . compiler ) )
1040
1044
. env ( "RUSTC" , builder. rustc ( self . compiler ) ) ;
1041
1045
1042
1046
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
1710
1714
|| mode == "rustdoc-json"
1711
1715
|| suite == "coverage-run-rustdoc"
1712
1716
{
1713
- cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc ( compiler) ) ;
1717
+ cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc_for_compiler ( compiler) ) ;
1714
1718
}
1715
1719
1716
1720
if mode == "rustdoc-json" {
@@ -2224,7 +2228,7 @@ impl BookTest {
2224
2228
2225
2229
// mdbook just executes a binary named "rustdoc", so we need to update
2226
2230
// 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) ;
2228
2232
rustdoc_path. pop ( ) ;
2229
2233
let old_path = env:: var_os ( "PATH" ) . unwrap_or_default ( ) ;
2230
2234
let new_path = env:: join_paths ( iter:: once ( rustdoc_path) . chain ( env:: split_paths ( & old_path) ) )
0 commit comments