Enable --cfg=parallel_compiler in rustdoc.

This commit is contained in:
Mara Bos 2023-02-21 10:12:06 +11:00 committed by Nicholas Nethercote
parent 953a71a328
commit c7f443a6e3

View File

@ -595,7 +595,7 @@ impl Step for Rustdoc {
features.push("jemalloc".to_string());
}
let cargo = prepare_tool_cargo(
let mut cargo = prepare_tool_cargo(
builder,
build_compiler,
Mode::ToolRustc,
@ -606,6 +606,10 @@ impl Step for Rustdoc {
features.as_slice(),
);
if builder.config.rustc_parallel {
cargo.rustflag("--cfg=parallel_compiler");
}
let msg = tooling_output(
Mode::ToolRustc,
"rustdoc",