Skip to content

rustc_codegen_ssa: Correctly apply the static --jobs-backend limit to backend parallelism - #160387

Open
petrochenkov wants to merge 1 commit into
rust-lang:mainfrom
petrochenkov:backlimit
Open

rustc_codegen_ssa: Correctly apply the static --jobs-backend limit to backend parallelism#160387
petrochenkov wants to merge 1 commit into
rust-lang:mainfrom
petrochenkov:backlimit

Conversation

@petrochenkov

Copy link
Copy Markdown
Contributor

Follow up to #159675.

r? @bjorn3

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 2, 2026
@rust-bors

rust-bors Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #160411) made this pull request unmergeable. Please resolve the merge conflicts by rebasing.

@petrochenkov

Copy link
Copy Markdown
Contributor Author

This PR will become simpler if #160424 is merged first.

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 3, 2026
Use `thread::available_parallelism` as the default limit for backend parallelism

Instead of the old scheme with 32-or-unlimited, depending on inherited-ness of the jobserver.

Not sure if this needs some wider discussion or not.
In the most common case (rustc is called from cargo) nothing changes, because cargo already limits the parallelism to `thread::available_parallelism` by default, and passes this limit to rustc through jobserver.

rust-lang#160387 will become simpler if this PR is merged first.
r? @bjorn3 @Zoxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants