@@ -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 (
@@ -1720,7 +1724,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1720
1724
|| mode == "rustdoc-json"
1721
1725
|| suite == "coverage-run-rustdoc"
1722
1726
{
1723
- cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc ( compiler) ) ;
1727
+ cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc_for_compiler ( compiler) ) ;
1724
1728
}
1725
1729
1726
1730
if mode == "rustdoc-json" {
@@ -2234,7 +2238,7 @@ impl BookTest {
2234
2238
2235
2239
// mdbook just executes a binary named "rustdoc", so we need to update
2236
2240
// PATH so that it points to our rustdoc.
2237
- let mut rustdoc_path = builder. rustdoc ( compiler) ;
2241
+ let mut rustdoc_path = builder. rustdoc_for_compiler ( compiler) ;
2238
2242
rustdoc_path. pop ( ) ;
2239
2243
let old_path = env:: var_os ( "PATH" ) . unwrap_or_default ( ) ;
2240
2244
let new_path = env:: join_paths ( iter:: once ( rustdoc_path) . chain ( env:: split_paths ( & old_path) ) )
0 commit comments