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

CARGO_BUILD_TARGET isn't respected #59

Open
dancek opened this issue Nov 29, 2022 · 1 comment
Open

CARGO_BUILD_TARGET isn't respected #59

dancek opened this issue Nov 29, 2022 · 1 comment

Comments

@dancek
Copy link

dancek commented Nov 29, 2022

I have a container set up for cross compilation. CARGO_BUILD_TARGET is set and rust projects compile with just cargo build.

I'd expect cargo deb to also work but alas, I seem to require an explicit --target=$CARGO_BUILD_TARGET on invocation.

@kornelski
Copy link
Owner

Yes, cargo deb needs to know the target itself, and it doesn't scrape all the places Cargo uses.

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

No branches or pull requests

2 participants