Add MingW support
Description
Ark can currently not be cross-compiled from Linux to Windows using MingW. There are some minor incompatibilities across the code-base and missing relevant compilation options.
This PR enables compatibility with x86_64-w64-mingw32-c++ as the compiler, the changes consist of some required compilation switches, and some minor code changes.
Checklist
- [x] I have read the Contributor guide
- [x] My code follows the style guidelines of this project
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation if needed
- [x] I have added tests that prove my fix/feature is working
- [x] New and existing tests pass locally with my changes
Thanks for the PR!
I see there is no way to test the mingw config in the CI, could you update it?
Tips: it might be faster to test the CI on your fork first than here (since GitHub continuously ask me to approve workflow runs somehow?)
coverage: 86.7%. remained the same when pulling f68de101d16d29100e08d597b4b9a5942144a830 on 27justin:feat/mingw-support into 58293c775525b97337d69f8aacfbd6eb53307971 on ArkScript-lang:dev.
Hi there!
Would you still like to add MinGW support to ArkScript?