@@ -263,7 +263,7 @@ impl Step for Cargotest {
263
263
. arg ( & out_dir)
264
264
. args ( builder. config . test_args ( ) )
265
265
. env ( "RUSTC" , builder. rustc ( compiler) )
266
- . env ( "RUSTDOC" , builder. rustdoc ( compiler) ) ;
266
+ . env ( "RUSTDOC" , builder. rustdoc_for_compiler ( compiler) ) ;
267
267
add_rustdoc_cargo_linker_args (
268
268
& mut cmd,
269
269
builder,
@@ -878,7 +878,7 @@ impl Step for RustdocTheme {
878
878
. env ( "RUSTC_SYSROOT" , builder. sysroot ( self . compiler ) )
879
879
. env ( "RUSTDOC_LIBDIR" , builder. sysroot_target_libdir ( self . compiler , self . compiler . host ) )
880
880
. env ( "CFG_RELEASE_CHANNEL" , & builder. config . channel )
881
- . env ( "RUSTDOC_REAL" , builder. rustdoc ( self . compiler ) )
881
+ . env ( "RUSTDOC_REAL" , builder. rustdoc_for_compiler ( self . compiler ) )
882
882
. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
883
883
cmd. args ( linker_args ( builder, self . compiler . host , LldThreads :: No , self . compiler . stage ) ) ;
884
884
@@ -1037,7 +1037,11 @@ impl Step for RustdocGUI {
1037
1037
let mut cmd = builder. tool_cmd ( Tool :: RustdocGUITest ) ;
1038
1038
1039
1039
let out_dir = builder. test_out ( self . target ) . join ( "rustdoc-gui" ) ;
1040
- build_stamp:: clear_if_dirty ( builder, & out_dir, & builder. rustdoc ( self . compiler ) ) ;
1040
+ build_stamp:: clear_if_dirty (
1041
+ builder,
1042
+ & out_dir,
1043
+ & builder. rustdoc_for_compiler ( self . compiler ) ,
1044
+ ) ;
1041
1045
1042
1046
if let Some ( src) = builder. config . src . to_str ( ) {
1043
1047
cmd. arg ( "--rust-src" ) . arg ( src) ;
@@ -1053,7 +1057,7 @@ impl Step for RustdocGUI {
1053
1057
1054
1058
cmd. arg ( "--jobs" ) . arg ( builder. jobs ( ) . to_string ( ) ) ;
1055
1059
1056
- cmd. env ( "RUSTDOC" , builder. rustdoc ( self . compiler ) )
1060
+ cmd. env ( "RUSTDOC" , builder. rustdoc_for_compiler ( self . compiler ) )
1057
1061
. env ( "RUSTC" , builder. rustc ( self . compiler ) ) ;
1058
1062
1059
1063
add_rustdoc_cargo_linker_args (
@@ -1742,7 +1746,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1742
1746
|| mode == "rustdoc-json"
1743
1747
|| suite == "coverage-run-rustdoc"
1744
1748
{
1745
- cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc ( compiler) ) ;
1749
+ cmd. arg ( "--rustdoc-path" ) . arg ( builder. rustdoc_for_compiler ( compiler) ) ;
1746
1750
}
1747
1751
1748
1752
if mode == "rustdoc-json" {
@@ -2258,7 +2262,7 @@ impl BookTest {
2258
2262
2259
2263
// mdbook just executes a binary named "rustdoc", so we need to update
2260
2264
// PATH so that it points to our rustdoc.
2261
- let mut rustdoc_path = builder. rustdoc ( compiler) ;
2265
+ let mut rustdoc_path = builder. rustdoc_for_compiler ( compiler) ;
2262
2266
rustdoc_path. pop ( ) ;
2263
2267
let old_path = env:: var_os ( "PATH" ) . unwrap_or_default ( ) ;
2264
2268
let new_path = env:: join_paths ( iter:: once ( rustdoc_path) . chain ( env:: split_paths ( & old_path) ) )
0 commit comments