Skip to content

Commit c7f443a

Browse files
m-ou-sennethercote
authored andcommitted
Enable --cfg=parallel_compiler in rustdoc.
1 parent 953a71a commit c7f443a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/tool.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ impl Step for Rustdoc {
595595
features.push("jemalloc".to_string());
596596
}
597597

598-
let cargo = prepare_tool_cargo(
598+
let mut cargo = prepare_tool_cargo(
599599
builder,
600600
build_compiler,
601601
Mode::ToolRustc,
@@ -606,6 +606,10 @@ impl Step for Rustdoc {
606606
features.as_slice(),
607607
);
608608

609+
if builder.config.rustc_parallel {
610+
cargo.rustflag("--cfg=parallel_compiler");
611+
}
612+
609613
let msg = tooling_output(
610614
Mode::ToolRustc,
611615
"rustdoc",

0 commit comments

Comments
 (0)