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
cargo: enable LTO for release builds #105
Conversation
Relatedly, just my 2¢ - in rpm-ostree we do:
As I think for binaries (and particularly daemons managed by systemd) you really want a core dump collected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the size difference with the binary now with panic=abort?
|
I'm wary of switching the panic behavior to The rpm-ostree is a different case and that setting makes sense there, as that one is a staticlib consumed by C and unwinding through FFI is not supported. |
Lock files are cleaned up by the kernel. |
update-ssh-keys also relies on the destructor being run to switch back to the original user after calling setuid and setgid to write the ssh keys. that seems like something that might also get cleaned up by the os though? I'm not sure. |
Since it seems like we're not sure if we want |
Yeah, calling |
It's probably worth mentioning a case that isn't handled with simple process death: rust-lang/rust#49032 (comment) (Though IMO here the fix is a kernel API to say that the tty mode changes made by a process should be transient; a userspace workaround would be to fork off a helper process whose sole job is to monitor the parent process and reset the tty mode on exit) |
LTO makes the final binary a bit smaller, and isn't really a risk here, so enable it.
I've opened #107 to track |
LTO makes the final binary a bit smaller, and isn't really a risk here,
so enable it.