-
Notifications
You must be signed in to change notification settings - Fork 22
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
Initial changes to build on Windows #1295
Conversation
076a0e0
to
6a650f1
Compare
b72409a
to
3b6e0ad
Compare
Can you rebase this on top of #1307 ? Removing |
3b6e0ad
to
dafb776
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the #[cfg]
imports, it's definitely cleaner when separate, but these are the tools, so I don't really care. I do think the best would be to have the imports not #[cfg]
ed and export from compat
platform-independent interfaces (e.x. pub use libc::snprintf
in compat::stdio
), but again it's the tools, so it's probably not important.
I had a few other little comments, though, and could you rebase it on #1308 (or just wait for that to merge, probably tomorrow)?
dafb776
to
8d5ffb3
Compare
Hadn't thought of that; makes it easier to rip out when we get rid of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small nitpicks, but if you deem them unworthy of fixing, this LGTM. Builds fine on my windows 11 machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM besides Stephen's comments.
8d5ffb3
to
9bc5872
Compare
9d94d85
to
6221724
Compare
6221724
to
867014a
Compare
@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`. * Fixes #1365.
DONE:
cfg
eduse
sDeferred to follow up PR: