Skip to content

Commit 809eec5

Browse files
committed
Enable --cfg=parallel_compiler in rustdoc.
1 parent 01d15b4 commit 809eec5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/tool.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ impl Step for Rustdoc {
551551
features.push("jemalloc".to_string());
552552
}
553553

554-
let cargo = prepare_tool_cargo(
554+
let mut cargo = prepare_tool_cargo(
555555
builder,
556556
build_compiler,
557557
Mode::ToolRustc,
@@ -562,6 +562,10 @@ impl Step for Rustdoc {
562562
features.as_slice(),
563563
);
564564

565+
if builder.config.rustc_parallel {
566+
cargo.rustflag("--cfg=parallel_compiler");
567+
}
568+
565569
builder.info(&format!(
566570
"Building rustdoc for stage{} ({})",
567571
target_compiler.stage, target_compiler.host

0 commit comments

Comments
 (0)