Skip to content

Commit

Permalink
Enable --cfg=parallel_compiler in rustdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jan 24, 2023
1 parent 01d15b4 commit 809eec5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,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,
Expand All @@ -562,6 +562,10 @@ impl Step for Rustdoc {
features.as_slice(),
);

if builder.config.rustc_parallel {
cargo.rustflag("--cfg=parallel_compiler");
}

builder.info(&format!(
"Building rustdoc for stage{} ({})",
target_compiler.stage, target_compiler.host
Expand Down

0 comments on commit 809eec5

Please sign in to comment.