Skip to content

Commit

Permalink
Auto merge of #64032 - andjo403:codegen-units, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
rustdoc use -Ccodegen-units=1 by default for test compile

as the test is small we do not want split up in multiple codegen units
and also as there is multiple test running at the same time this
will reduce the number of concurrent threads

tested the test time with `./x.py test src/libcore --doc`
for my 16 core 32 thread cpu i get about 6% faster execution
and my 2 core 4 thread cpu I get about 10% faster execution

cc #63638
 r? @Mark-Simulacrum
  • Loading branch information
bors committed Aug 31, 2019
2 parents b314654 + 0b478e6 commit 26d5e13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ fn run_test(
for extern_str in &options.extern_strs {
compiler.arg("--extern").arg(&extern_str);
}
compiler.arg("-Ccodegen-units=1");
for codegen_options_str in &options.codegen_options_strs {
compiler.arg("-C").arg(&codegen_options_str);
}
Expand Down

0 comments on commit 26d5e13

Please sign in to comment.