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

Stop stripping and LTO #334

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Stop stripping and LTO #334

merged 1 commit into from
Apr 16, 2024

Conversation

Noratrieb
Copy link
Member

@Noratrieb Noratrieb commented Apr 16, 2024

Stop stripping:
Stripping symbols here is bad, because it makes the binary completely opaque and undebbuggable, should something ever go wrong. The binary size benefit is very minor, this program is supposed to run on desktop computers with tons of disk space. The tradeoff is bad.

I like to follow the rule of "do not ever strip symbols unless you absolutely need to", at least for programs on dev systems.

Stop LTO:
The same binary size non-concerns as stripping apply. Also, speed basically doesn't matter here. Meanwhile, we want this program to be cargo install-able, so compile times matter. Again, the tradeoff is bad.

*Stop stripping*:
Stripping symbols here is bad, because it makes the binary completely opaque and undebbuggable, should something ever go wrong. The binary size benefit is very minor, this program is supposed to run on desktop computers with tons of disk space.
The tradeoff is bad.

*Stop LTO*:
The same binary size non-concerns as stripping apply. Also, speed basically doesn't matter here.
Meanwhile, we want this program to be `cargo install`-able, so compile times matter.
Again, the tradeoff is bad.
@Noratrieb
Copy link
Member Author

If anyone cares about sacrificing things for 4 megabytes like in #157 they can always manually override the setting for their builds, this is just the default.

@Noratrieb
Copy link
Member Author

@oli-obk you have approved the other pr

@oli-obk oli-obk merged commit 0859f47 into rust-lang:master Apr 16, 2024
4 checks passed
@Noratrieb Noratrieb deleted the patch-1 branch April 16, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants