We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d15b4 commit 809eec5Copy full SHA for 809eec5
src/bootstrap/tool.rs
@@ -551,7 +551,7 @@ impl Step for Rustdoc {
551
features.push("jemalloc".to_string());
552
}
553
554
- let cargo = prepare_tool_cargo(
+ let mut cargo = prepare_tool_cargo(
555
builder,
556
build_compiler,
557
Mode::ToolRustc,
@@ -562,6 +562,10 @@ impl Step for Rustdoc {
562
features.as_slice(),
563
);
564
565
+ if builder.config.rustc_parallel {
566
+ cargo.rustflag("--cfg=parallel_compiler");
567
+ }
568
+
569
builder.info(&format!(
570
"Building rustdoc for stage{} ({})",
571
target_compiler.stage, target_compiler.host
0 commit comments