Skip to content

Commit fdde082

Browse files
authoredJun 16, 2020
Rollup merge of rust-lang#73380 - pnkfelix:make-bootstrap-help-print-num-cpus, r=Mark-Simulacrum
Add more info to `x.py build --help` on default value for `-j JOBS`.
2 parents 7f2e169 + b34a417 commit fdde082

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/bootstrap/flags.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`",
147147
"N",
148148
);
149149
opts.optopt("", "src", "path to the root of the rust checkout", "DIR");
150-
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
150+
let j_msg = format!(
151+
"number of jobs to run in parallel; \
152+
defaults to {} (this host's logical CPU count)",
153+
num_cpus::get()
154+
);
155+
opts.optopt("j", "jobs", &j_msg, "JOBS");
151156
opts.optflag("h", "help", "print this help message");
152157
opts.optopt(
153158
"",

0 commit comments

Comments
 (0)