logoalt Hacker News

kragenyesterday at 7:10 PM2 repliesview on HN

Misleading how? If your first thought on looking at a Rust-generated static library is that it's fucking huge, it's not misleading at all for someone to tell you that Rust-generated static libraries are mostly LLVM bitcode that you can remove with `objcopy --remove-section .llvmbc`.


Replies

compiler-guyyesterday at 7:40 PM

This somewhat custom use-case has an option turned on that jacks the size way up. Here is a hacky way to undo that option.

You could also just ... not turn it on in the first place. You are doing a nonstandard build already.

show 1 reply