Uh oh!
There was an error while loading. Please reload this page.
Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation - #146458
Conversation
rustbot
commented
Sep 12, 2025
This PR modifies If appropriate, please update This PR modifies If appropriate, please update |
rustbot
commented
Sep 12, 2025
r? @clubby789 rustbot has assigned @clubby789. Use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ebc3e15 to
7c0230fCompareHayden602
commented
Sep 12, 2025
r? @SparrowLii@Kobzol |
| # Trigger a `DebugBreak` after an internal compiler error during bootstrap on Windows | ||
| #rust.break-on-ice = true | ||
| # Set the number of threads used during rustc compilation |
There was a problem hiding this comment.
| # Set the number of threads used during rustc compilation | |
| # Set the number of threads for the compiler frontend used during rustc compilation (passed to `-Zthreads`). |
There was a problem hiding this comment.
This change also isn't limited to what is "used during rustc compilation", right? Tools, std, etc will get -Zthreads as well it seems?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # Set the number of threads used during rustc compilation | ||
| # The valid options are: | ||
| # 1 - Use non-parallel compilation |
There was a problem hiding this comment.
that's only in the frontend, so it's not "non-parallel compilation"
264a516 to
b5ebe58Comparerustbot
commented
Sep 15, 2025
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…aded parallel compilation
| # 0 - Set the number of threads according to the detected number of threads of the host system | ||
| # 0 - Set the number of threads according to the detected number of threads of the host system |
Kobzol
commented
Sep 17, 2025
Thank you! @bors r+ rollup |
bors
commented
Sep 17, 2025
Rollup of 7 pull requests Successful merges: - #146458 (Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation) - #146485 (Remove unsized arg handling in `ArgAbiBuilderMethods::store_fn_arg` implementations) - #146536 (clean up several trait related UI tests) - #146598 (Make llvm_enzyme a regular cargo feature) - #146647 (Move `#[rustc_coherence_is_core]` to the `crate_level` file) - #146654 (Do not use `git -C dir`) - #146681 (Add space after brace in `Box<[T]>::new_uninit_slice` example) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #146458 - Hayden602:bootstrap, r=Kobzol Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation Add the option to use the parallel compiler when building Rust code in bootstrap.
…zelmann Rollup of 7 pull requests Successful merges: - rust-lang#146458 (Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation) - rust-lang#146485 (Remove unsized arg handling in `ArgAbiBuilderMethods::store_fn_arg` implementations) - rust-lang#146536 (clean up several trait related UI tests) - rust-lang#146598 (Make llvm_enzyme a regular cargo feature) - rust-lang#146647 (Move `#[rustc_coherence_is_core]` to the `crate_level` file) - rust-lang#146654 (Do not use `git -C dir`) - rust-lang#146681 (Add space after brace in `Box<[T]>::new_uninit_slice` example) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - rust-lang/rust#146458 (Add parallel-frontend-threads to bootstrap.toml and enable multi-threaded parallel compilation) - rust-lang/rust#146485 (Remove unsized arg handling in `ArgAbiBuilderMethods::store_fn_arg` implementations) - rust-lang/rust#146536 (clean up several trait related UI tests) - rust-lang/rust#146598 (Make llvm_enzyme a regular cargo feature) - rust-lang/rust#146647 (Move `#[rustc_coherence_is_core]` to the `crate_level` file) - rust-lang/rust#146654 (Do not use `git -C dir`) - rust-lang/rust#146681 (Add space after brace in `Box<[T]>::new_uninit_slice` example) r? `@ghost` `@rustbot` modify labels: rollup
Add the option to use the parallel compiler when building Rust code in bootstrap.