cross-toolchains icon indicating copy to clipboard operation
cross-toolchains copied to clipboard

Request: Support for binary stripping

Open mcandre opened this issue 2 years ago • 2 comments

When I enable binary stripping in a Cargo.toml release profile, then the cross build emits a warning about how it doesn't know how to strip symbols. Presumably because the binary is targeting a different operating system than the container guest operating system.

Perhaps we need the Docker images to install an additional tool for this?

mcandre avatar Apr 02 '23 14:04 mcandre

What target do you get this for? It might be out of scope for cross, depending on the target

Emilgardis avatar Apr 02 '23 14:04 Emilgardis

I seem to remember this one occurring for the aarch64-apple-darwin target. It's actually a warning rather than an error, so among lots of other output, I nearly missed it.

My love of cross is expressed in terms of porting my Rust projects to as many of the rustup targets as physically possible. So ideally I would like to see strip support working for all of the targets.

Perhaps stripping can be resolved by installing an additional package, or tweaking a config file somewhere. But maybe cargo and/or rustc would benefit from improving how they look for strip commands when cross compiling, not sure.

mcandre avatar Apr 03 '23 20:04 mcandre