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

Cannot compile for Windows #15

Open
vitobotta opened this issue Jan 3, 2023 · 3 comments
Open

Cannot compile for Windows #15

vitobotta opened this issue Jan 3, 2023 · 3 comments

Comments

@vitobotta
Copy link

Hi! First of all thanks for this awesome library, works like a charm!

I am trying to build a Windows executable from my Mac, but I get errors related to macros that do something specific if the architecture of the OS is Darwin/macOS. Is there any workaround for this that would allow me to compile for Windows? Thanks in advance!

@stakach
Copy link
Member

stakach commented Jan 3, 2023

I think there are two issues currently with having this work on windows.

Firstly, we're using some undocumented hooks into the event scheduler
and your observation is correct as that file is skipped for win32.

Secondly, I think there are some behavioral differences in the library itself between *nix and windows.
As basically the library handles the IO and just raises issues if it would block. But pretty sure win32 does something different?

Happy to accept pull requests

@vitobotta
Copy link
Author

Hi @stakach and thanks for the so quick response! I am still new to Crystal so I may not be able (just yet) to do a PR for this. For the time being users of my tool can just use the Linux binary under WSL I guess, since they are developers anyway. Thanks!

@stakach
Copy link
Member

stakach commented Jan 3, 2023

probably worth keeping open for prosperity

@stakach stakach reopened this Jan 3, 2023
@stakach stakach changed the title Cannot cross compile on Mac for Windows Cannot compile for Windows Jan 3, 2023
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