Enable --cfg=parallel_compiler in rustdoc.
This commit is contained in:
parent
953a71a328
commit
c7f443a6e3
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user