-
Notifications
You must be signed in to change notification settings - Fork 397
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
wrong target_os? #1627
Comments
why would a Is this a buildscript? buildscripts are ran as the host, so when a buildscript is ran target_os=host_os |
sorry i wasn't clear it was a build script(updated desc)
I see. that makes so much sense. I was trying to build this https://github.com/LeoBorai/network-interface/blob/main/build.rs#L5 do you think it's possible to cross it ? given the build script was created that way |
so this is actually the cargo behaviour? |
rust-lang/cargo#13277 found it |
yes it's possible, they are doing a big mistake in the buildscript, it should be gated by runtime env args, not cfg. |
closing this issue as it's nothing we can resolve. The build script needs to be fixed |
Checklist
Describe your issue
have a build.rs in an empty crate
and run
cross build --target x86_64-unknown-freebsd
it should print "freebsd"
What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (107433f 2025-02-06) [cross] note: Falling back to
cargo
on the host. cargo 1.83.0 (5ffbef321 2024-10-29)Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: