Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for negative --jobs parameter, counting backwards from max CPUs #10844

Merged
merged 9 commits into from
Aug 1, 2022
Prev Previous commit
Next Next commit
update config.md
yerke committed Jul 10, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit e9fb8499ec9fffb642f58ed6ca65305432762e36
4 changes: 3 additions & 1 deletion src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
@@ -344,7 +344,9 @@ The `[build]` table controls build-time operations and compiler settings.
* Default: number of logical CPUs
* Environment: `CARGO_BUILD_JOBS`

Sets the maximum number of compiler processes to run in parallel.
Sets the maximum number of compiler processes to run in parallel. If negative,
it sets the maximum number of compiler processes to the number of logical CPUs
plus provided value. Should not be 0.

Can be overridden with the `--jobs` CLI option.