diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2023-02-21 10:12:06 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:53:17 +1100 |
| commit | c7f443a6e3320b4cb70da5af08810f1dd60e146c (patch) | |
| tree | 5e66bb7b659ba9672106ec7eaffd0bf1790cab69 | |
| parent | 953a71a328195c55b38e2e3450c461add8bcc099 (diff) | |
| download | rust-c7f443a6e3320b4cb70da5af08810f1dd60e146c.tar.gz rust-c7f443a6e3320b4cb70da5af08810f1dd60e146c.zip | |
Enable --cfg=parallel_compiler in rustdoc.
| -rw-r--r-- | src/bootstrap/tool.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index d30532ef3c6..3c9a154da9a 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -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", |
