Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/rustc_session/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ fn parse_jobs_all(
check_upper_limit(frontend, opt_name);
frontend
}
None => jobs.flatten(),
None => None, // default to 1 thread irrespectively of `jobs` for now
},
};
let backend = match matches.opt_str("jobs-backend") {
Expand Down
7 changes: 3 additions & 4 deletions src/doc/rustc/src/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ more specific `jobs-*` options cannot specify larger values.
Parallelism used by compilation stages from lexing to generation of backend IR (e.g. LLVM IR).

- If `jobs-frontend` is passed, then it is used as the limit,
- otherwise if `jobs` is passed, then it is used as the limit,
- otherwise `1` is used as the limit (parallelism is disabled), this default may change.
- otherwise `1` is used as the limit (parallelism is disabled), this default may change,
but if it's changed to a larger value the limit from `jobs` will still be respected.

In any case the parallelism here may be additionally limited dynamically by jobserver
passed from a higher level build system like cargo.
Expand All @@ -510,8 +510,7 @@ Parallelism used by compilation stages converting backend IR to object files.

- If `jobs-backend` is passed, then it is used as the limit,
- otherwise if `jobs` is passed, then it is used as the limit,
- otherwise `32` is used as the limit or there's no limit in case of an inherited jobserver,
this default may change.
- otherwise the number of available logical CPUs is used as the limit, this default may change.

@petrochenkov petrochenkov Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to update this in #160387.

View changes since the review


In any case the parallelism here may be additionally limited dynamically by jobserver
passed from a higher level build system like cargo.
Expand Down
Loading