Auto merge of #119292 - onur-ozkan:share-make-with-rustdoc, r=albertlarsan68

bootstrap: use same make flags with rustdoc

Keeping same `MAKEFLAGS` and `MFLAGS` for rustdoc should allow rustdoc to use the same jobserver.
This commit is contained in:
bors 2023-12-25 12:31:34 +00:00
commit 13ea97cb14

View File

@ -1221,11 +1221,6 @@ pub fn rustdoc_cmd(&self, compiler: Compiler) -> Command {
cmd.arg("-Dwarnings"); cmd.arg("-Dwarnings");
} }
cmd.arg("-Znormalize-docs"); cmd.arg("-Znormalize-docs");
// Remove make-related flags that can cause jobserver problems.
cmd.env_remove("MAKEFLAGS");
cmd.env_remove("MFLAGS");
cmd.args(linker_args(self, compiler.host, LldThreads::Yes)); cmd.args(linker_args(self, compiler.host, LldThreads::Yes));
cmd cmd
} }