Modernize release output
chipsenkbeil opened this issue · 2 comments
chipsenkbeil commented
Follow https://github.com/johnthagen/min-sized-rust
- Use a release profile to strip vs manually running strip
- Stick with
z
foropt-level
(smallest size?) (doc) - Abort on panic? (doc)
- Support nightly build option that also builds std lib? (doc)
- Try out windows-specific size optimizations? (doc)
-
Compress binary withupx
? (doc)- Causes issues on MacOS (upx/upx#424)
chipsenkbeil commented
Look at statically pulling in GLIBC: https://stackoverflow.com/questions/74740941/how-can-i-resolve-this-issue-libm-so-6-version-glibc-2-29-not-found-c-c
chipsenkbeil commented
Rather than statically pulling in glibc, which can cause a bunch of issues (maybe), we should also consider updating the release builds to use the oldest version of Linux possible to reduce the glibc version issue.
I think to achieve that, we'll need to use Docker as the versions of Linux supported are still too new.
See this bump in Rust requirements for glibc and Linux kernel: https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html