Skip to content
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

Enable link-time optimizations for release builds to reduce the binary size #221

Open
rdw-software opened this issue Jun 17, 2023 · 1 comment

Comments

@rdw-software
Copy link
Member

rdw-software commented Jun 17, 2023

This reduces the binary size by ~7 MB on Windows, but adds several seconds to each rebuild. Since there's currently just a single build configuration, adding this in a non-hacky way would require #128. Always enabling it increases iteration time (bad idea).

Also, at least the MSYS2 gcc defaults to using a single core when no argument is given (instead of defaulting to use the maximum), which means something like nproc has to be used to compute the maximum at configuration time.

@rdw-software
Copy link
Member Author

rdw-software commented Oct 19, 2024

Seems to be blocked because of symbol type issues with uSockets. Don't have time to investigate, but might be Windows only?

Edit: See WITH_LTO setting and comment. I don't remember facing this previously; misconfiguration somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Soon™
Development

No branches or pull requests

1 participant