@@ -260,7 +260,7 @@ fn invoke_rustdoc(builder: &Builder, compiler: Compiler, target: Interned<String
260
260
t ! ( t!( File :: create( & version_info) ) . write_all( info. as_bytes( ) ) ) ;
261
261
}
262
262
263
- let mut cmd = builder. rustdoc_cmd ( compiler) ;
263
+ let mut cmd = builder. rustdoc_cmd ( compiler. host ) ;
264
264
265
265
let out = out. join ( "book" ) ;
266
266
@@ -343,7 +343,7 @@ impl Step for Standalone {
343
343
}
344
344
345
345
let html = out. join ( filename) . with_extension ( "html" ) ;
346
- let rustdoc = builder. rustdoc ( compiler) ;
346
+ let rustdoc = builder. rustdoc ( compiler. host ) ;
347
347
if up_to_date ( & path, & html) &&
348
348
up_to_date ( & footer, & html) &&
349
349
up_to_date ( & favicon, & html) &&
@@ -353,7 +353,7 @@ impl Step for Standalone {
353
353
continue
354
354
}
355
355
356
- let mut cmd = builder. rustdoc_cmd ( compiler) ;
356
+ let mut cmd = builder. rustdoc_cmd ( compiler. host ) ;
357
357
cmd. arg ( "--html-after-content" ) . arg ( & footer)
358
358
. arg ( "--html-before-content" ) . arg ( & version_info)
359
359
. arg ( "--html-in-header" ) . arg ( & favicon)
@@ -408,7 +408,7 @@ impl Step for Std {
408
408
let out = build. doc_out ( target) ;
409
409
t ! ( fs:: create_dir_all( & out) ) ;
410
410
let compiler = builder. compiler ( stage, build. build ) ;
411
- let rustdoc = builder. rustdoc ( compiler) ;
411
+ let rustdoc = builder. rustdoc ( compiler. host ) ;
412
412
let compiler = if build. force_use_stage1 ( compiler, target) {
413
413
builder. compiler ( 1 , compiler. host )
414
414
} else {
@@ -493,7 +493,7 @@ impl Step for Test {
493
493
let out = build. doc_out ( target) ;
494
494
t ! ( fs:: create_dir_all( & out) ) ;
495
495
let compiler = builder. compiler ( stage, build. build ) ;
496
- let rustdoc = builder. rustdoc ( compiler) ;
496
+ let rustdoc = builder. rustdoc ( compiler. host ) ;
497
497
let compiler = if build. force_use_stage1 ( compiler, target) {
498
498
builder. compiler ( 1 , compiler. host )
499
499
} else {
@@ -554,7 +554,7 @@ impl Step for Rustc {
554
554
let out = build. doc_out ( target) ;
555
555
t ! ( fs:: create_dir_all( & out) ) ;
556
556
let compiler = builder. compiler ( stage, build. build ) ;
557
- let rustdoc = builder. rustdoc ( compiler) ;
557
+ let rustdoc = builder. rustdoc ( compiler. host ) ;
558
558
let compiler = if build. force_use_stage1 ( compiler, target) {
559
559
builder. compiler ( 1 , compiler. host )
560
560
} else {
0 commit comments