-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs are missing possible values for LTO #6214
Comments
The LTO settings and defaults are documented at https://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections |
One thing that's not clear is if enabling There's a note in the code, but that condition seems to set |
I'd also like to have some more clarification about "fat" etc being the same. And a note that you can trim down the size even more by using this. |
Yea, I think it could definitely mention that |
There's also a rustc issue rust-lang/rust#48518 about the codegen units/lto interaction. |
Problem
Docs are missing the possible values for lto.
I just got to know via #rust irc about
This value isn't listed or documented in the cargo docs.
Steps
Possible Solution(s)
Document all possible values.
Notes
I was told that lto is enabled by default for release builds, going by the docs that isn't true, is it ?
At least for me it made a difference of ~3 MiB to set lto = "fat"
The text was updated successfully, but these errors were encountered: