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

Detect cross compilation and adjust Cargo output directory #2099

Open
alerque opened this issue Aug 31, 2024 · 0 comments
Open

Detect cross compilation and adjust Cargo output directory #2099

alerque opened this issue Aug 31, 2024 · 0 comments
Assignees
Labels
bug Software bug issue tooling Build tooling, release management, and packaging processes
Milestone

Comments

@alerque
Copy link
Member

alerque commented Aug 31, 2024

Cross compiling with Cargo adds a segment to the output directory with the host info. Currently we don't have a way to detect this and adjust, we just blindly assume the Cargo directory will be "target/release" instead of perhaps "target/x86_64-unknown-linux-gnu/release".

This is a problem for some distro packages, e.g. Void bumped into this.

Somehow we should detect whether cross compilation is being used and what the target triple is.

@alerque alerque added bug Software bug issue tooling Build tooling, release management, and packaging processes labels Aug 31, 2024
@alerque alerque added this to the v0.15.6 milestone Aug 31, 2024
@alerque alerque self-assigned this Aug 31, 2024
@alerque alerque modified the milestones: v0.15.6, v0.15.7 Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software bug issue tooling Build tooling, release management, and packaging processes
Projects
None yet
Development

No branches or pull requests

1 participant