feat: Add Windows/MSVC cross-platform support#24
Conversation
…stracting platform-specific APIs and build system configurations
|
It’s worth noting that on Windows you can build the compiler with MSVC, but at the moment you still need GCC/MinGW to compile the C code generated by |
|
I want to try this out more thoroughly this weekend. Initially I found the produced zc binary looks for src/std/z_platform.h when compiling and will fail if its not there. Might be cool if it were embedded into the binary somehow but otoh the distribution just requires that z_platform.h is reachable. But hey this compiled my first try on windows! great job so far! |
|
@4fuu can you update this with main please |
|
@Salvakiya z_platform.h will be distributed together with the other files under std, so it should be available as long as the standard library files are installed. I’ve also merged the latest main into this branch now, and added Windows CI as well. Everything should be up to date at this point. |
|
@Zuhaitz-dev just pinging in case this slipped through — I’ve merged the latest main, resolved conflicts, and added Windows CI. Everything is green now. Would love to get your thoughts when you have a chance. |
standaell1234-maker
left a comment
There was a problem hiding this comment.
4fuu:feature/multi-platform-compat
|
A few thoughts after messing around with windows and MSVC compatability...
|
The following is the content of this PR
Other changes (not core compatibility/fix work):