Skip to content
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

Request: Support for binary stripping #34

Open
mcandre opened this issue Apr 2, 2023 · 2 comments
Open

Request: Support for binary stripping #34

mcandre opened this issue Apr 2, 2023 · 2 comments
Labels
needs-information needs more information to replicate

Comments

@mcandre
Copy link

mcandre commented Apr 2, 2023

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?

@Emilgardis
Copy link
Member

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

@Emilgardis Emilgardis added the needs-information needs more information to replicate label Apr 2, 2023
@mcandre
Copy link
Author

mcandre commented Apr 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-information needs more information to replicate
Projects
None yet
Development

No branches or pull requests

2 participants