Enable --cfg=parallel_compiler in rustdoc.
This commit is contained in:
parent
953a71a328
commit
c7f443a6e3
1 changed files with 5 additions and 1 deletions
|
@ -595,7 +595,7 @@ impl Step for Rustdoc {
|
||||||
features.push("jemalloc".to_string());
|
features.push("jemalloc".to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
let cargo = prepare_tool_cargo(
|
let mut cargo = prepare_tool_cargo(
|
||||||
builder,
|
builder,
|
||||||
build_compiler,
|
build_compiler,
|
||||||
Mode::ToolRustc,
|
Mode::ToolRustc,
|
||||||
|
@ -606,6 +606,10 @@ impl Step for Rustdoc {
|
||||||
features.as_slice(),
|
features.as_slice(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if builder.config.rustc_parallel {
|
||||||
|
cargo.rustflag("--cfg=parallel_compiler");
|
||||||
|
}
|
||||||
|
|
||||||
let msg = tooling_output(
|
let msg = tooling_output(
|
||||||
Mode::ToolRustc,
|
Mode::ToolRustc,
|
||||||
"rustdoc",
|
"rustdoc",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue