Skip to content

rustbuild: Disable multiple CGUs in stable release builds #45444

Closed
@petrochenkov

Description

@petrochenkov

#45400 enabled multiple CGUs + ThinLTO in rustc builds to speedup bootstrap, however it made the produced compiler slower (see #45400 (comment) and below).

This is desirable for development builds, where build times are priority, but not for stable release builds that happen rarely (so build times don't matter much) and produce binaries used by majority of Rust users.

Enabling full LTO (#45400 (comment)) in stable release builds is also worth investigating.

Metadata

Metadata

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.P-highHigh priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions