-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Function sections should be enabled by default in the static compiler #12140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
In the past I found that this significantly slowed down the linker, and this is what The |
The good news is that this is just a flag that we pass through to LLVM somewhere and it'll just magically do it all for us, so with the new |
I don't think this should be enabled by default. It makes the remaining code larger and slower, and the same positive effects can be gained by doing link-time optimization. Making binaries smaller will require altering the design of the standard library, as using link-time optimization strips out even more than |
I compiled rust with With this in mind I don't think that we're going to want to turn this on by default. I'm going to close this in favor of #12455 |
Complete type param/associated type in trait generic arg per arg index - Fix rust-lang#12140 - Also fix tidy check does not work for marks in multiline
…_is_some, r=llogiq Improve help message for `search_is_some` lint Fixes rust-lang#11681. Like mentioned in the issue, we tend to use the formulation "consider using", which we didn't in this case. I think it clears both the confusion and also makes help message more coherent overall. r? `@llogiq` changelog: Improve help message for `search_is_some` lint
This would greatly reduce the size of staticaly linked binaries if ld is invoked with -gc-sections
The text was updated successfully, but these errors were encountered: