]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc use -Ccodegen-units=1 by default for test compile
authorAndreas Jonson <andjo403@users.noreply.github.com>
Fri, 30 Aug 2019 19:26:04 +0000 (21:26 +0200)
committerAndreas Jonson <andjo403@users.noreply.github.com>
Fri, 30 Aug 2019 19:26:04 +0000 (21:26 +0200)
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

src/librustdoc/test.rs

index 31c0b85a481f5a91067f659bfd1b23e1152fa886..88397aacac149118eee7313f409be854e63afa9d 100644 (file)
@@ -263,6 +263,7 @@ fn path(&self) -> &std::path::Path {
     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);
     }