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

build.rs: Fix windows cross compilation #1323

Merged
merged 4 commits into from
Oct 31, 2024
Merged

Conversation

kkysen
Copy link
Collaborator

@kkysen kkysen commented Jul 17, 2024

@thedataking, I only noticed after you merged #1295 a few things.

This should let us cross-compile from windows, cross-compile to *-windows-gnu (I think; the linker wasn't installed so I couldn't test all the way), and print a clear error when trying to cross-compile to *-windows-msvc. It also lets us do full cross-compilation on rav1d, as the snprintf stuff for windows is only for rav1d-cli.

…t os.

Cross-compiles (even of just `rav1d` the library) failed without this.
…s` so `rav1d` can cross compile to/from windows.
…rror if trying to cross compile to `*-windows-msvc`.
@kkysen kkysen force-pushed the kkysen/fix-windows-cross-compile branch from 41442ad to a61cac8 Compare October 22, 2024 22:54
build.rs Show resolved Hide resolved
@kkysen kkysen requested a review from thedataking October 26, 2024 08:20
@kkysen kkysen merged commit b8715b6 into main Oct 31, 2024
28 checks passed
@kkysen kkysen deleted the kkysen/fix-windows-cross-compile branch October 31, 2024 20:06
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

Successfully merging this pull request may close these issues.

cargo build fails on Windows 11
2 participants