Skip to content

Commit 0b478e6

Browse files
committed
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
1 parent 0f41401 commit 0b478e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ fn run_test(
263263
for extern_str in &options.extern_strs {
264264
compiler.arg("--extern").arg(&extern_str);
265265
}
266+
compiler.arg("-Ccodegen-units=1");
266267
for codegen_options_str in &options.codegen_options_strs {
267268
compiler.arg("-C").arg(&codegen_options_str);
268269
}

0 commit comments

Comments
 (0)