Skip to content

Consider enabling more aggressive optimizations like Fat LTO and codegen-units = 1 for Release profile #968

Answered by YaLTeR
zamazan4ik asked this question in Q&A
Discussion options

You must be logged in to vote

You Fedora example is also great - it shows that LTO is not enabled by default. So as far as I understand, your COPRs for now don't have enabled Fat LTO for the delivered to the users binaries.

Hm. Maybe they missed it? Other settings seem there, like codegen-units = 1 and opt-level = 3.

Heh, I went to look it up and found your own question: https://discussion.fedoraproject.org/t/link-time-optimization-lto-for-rust-packages-by-default-in-fedora/140086

E.g. Debian request - no recent activity.

Not sure applications should be responsible for this particular kind of distro issue.

For development purposes I can recommend you to add a dedicated [profile.release-dev] where you can enable r…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@zamazan4ik
Comment options

@YaLTeR
Comment options

Answer selected by zamazan4ik
@zamazan4ik
Comment options

Comment options

You must be logged in to vote
1 reply
@YaLTeR
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants