We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b272a commit 3a58b2bCopy full SHA for 3a58b2b
src/bootstrap/test.rs
@@ -1118,7 +1118,11 @@ impl Step for Tidy {
1118
cmd.arg(&builder.src);
1119
cmd.arg(&builder.initial_cargo);
1120
cmd.arg(&builder.out);
1121
- cmd.arg(builder.jobs().to_string());
+ // Tidy is heavily IO constrained. Still respect `-j`, but use a higher limit if `jobs` hasn't been configured.
1122
+ let jobs = builder.config.jobs.unwrap_or_else(|| {
1123
+ 8 * std::thread::available_parallelism().map_or(1, std::num::NonZeroUsize::get) as u32
1124
+ });
1125
+ cmd.arg(jobs.to_string());
1126
if builder.is_verbose() {
1127
cmd.arg("--verbose");
1128
}
0 commit comments