Skip to content

Commit 1a5d08e

Browse files
jyn514Joshua Nelson
authored and
Joshua Nelson
committed
Limit the number of build threads
1 parent 67f5c17 commit 1a5d08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docbuilder/rustwide_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl RustwideBuilder {
457457
if let Some(package_rustdoc_args) = &metadata.rustdoc_args {
458458
rustdoc_flags.append(&mut package_rustdoc_args.iter().map(|s| s.to_owned()).collect());
459459
}
460-
let mut cargo_args = vec!["doc", "--lib", "--no-deps"];
460+
let mut cargo_args = vec!["doc", "--lib", "--no-deps", "-j2"];
461461
if target != HOST_TARGET {
462462
// If the explicit target is not a tier one target, we need to install it.
463463
if !TARGETS.contains(&target) {

0 commit comments

Comments
 (0)