-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Build fails if target is passed withinRUSTFLAGS
#11452
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Cargo does more on its own To me, I would avoid passing Out of curious, is there anything hinder you from using |
The boring story is:
I guess it would be possible to provide |
Thank you for your reply. It is an interesting use case. Let me tell the hard part from Cargo's perspective, and we then try to find a workaround maybe.
Cargo already learns cargo/src/cargo/core/compiler/build_context/target_info.rs Lines 271 to 279 in a4d2e29
And if I understand correctly, looks like you're trying to cross-compile from Personally, I guess it is more likely to do it in reverse: when BTW, if you want the other environment variable to control target platform of Cargo, |
Correct. Since
Just to clarify it's rather how
Indeed that would work.
Yes I'm aware of it but it suffers from the same issue of defining |
let's see which direction cargo issue is gonna take: rust-lang/cargo#11452
Problem
Trying to build delta 0.15.1 with:
fails with:
However moving
--target
fromRUSTFLAGS
tocargo
command line makes build successful:This seems to affect platforms from tiers without hosts tools only? Managed to reproduce it for
thumbv7neon-unknown-linux-gnueabihf
andx86_64-unknown-linux-gnux32
but not onx86_64-unknown-linux-gnu
,i686-unknown-linux-gnu
,aarch64-unknown-linux-gnu
,arm-unknown-linux-gnueabihf
orarmv7-unknown-linux-gnueabihf
.Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: