Stripping binaries #1258
-
Is there an option to automatically strip the built binaries? |
Beta Was this translation helpful? Give feedback.
Answered by
Emilgardis
May 12, 2023
Replies: 1 comment 1 reply
-
Cross can't do this, but cargo can! You can specify in your Cargo.toml to strip
or pass see https://doc.rust-lang.org/cargo/reference/profiles.html#strip I remember vaguely it not working for every target though as the target might not have strip setup for it |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ofek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cross can't do this, but cargo can!
You can specify in your Cargo.toml to strip
or pass
-C strip
to rustcsee https://doc.rust-lang.org/cargo/reference/profiles.html#strip
I remember vaguely it not working for every target though as the target might not have strip setup for it