ponyc
ponyc copied to clipboard
Support gcc on windows (Enhancement)
Some people do not use Microsoft C/C++ compiler on windows. Please make pony compatible with mingw or mingw-64 on windows.
This would be nice to have; I am extremely busy right now and don't have time. If you want to experiment with GCC, this would require several steps:
- Modify the
ponyc-windows-libsproject (https://github.com/kulibali/ponyc-windows-libs) to add GCC builds. - In
wscript, add a config setting for msvc vs. gcc. - In
wscript, add gcc configuration to theconfigureandbuildfunctions.
Thanks for the reply. I have to check this out.
This seems interesting. Can I work on it? 🙂 incase it hasn't been done yet.
Yes!
@aravind-kumar I've invited you to be a member of the pony organization as a contributor. If you accept, you can be assigned to issues. Drop us a note here if you accept and someone can assign this issue to you.
Awesome! 🙂, Am in 🙂
Could you kindly explain in a bit more detail?
I am new and kind of finding it hard to understand
But interesting 🙂
@aravind-kumar exaplain what in more detail?
@SeanTAllen : The steps to take for this enhancement
- "Modify the ponyc-windows-libs project (https://github.com/kulibali/ponyc-windows-libs) to add GCC builds." This one 🙂
@aravind-kumar that would be a question for @kulibali
Hi @aravind-kumar, you'll need to do the following:
- Modify
build.ps1inponyc-windows-libsto build versions of PCRE2, LibreSSL and LLVM with GCC (probably mingw as the original poster suggests) as well as MSVC, and submit a pull request to that project. - I can tag a new release of that project and use
make-local.ps1to build and upload new library zip files. - Modify
wscriptin the https://github.com/ponylang/ponyc project to be able to use GCC as well as MSVC, and submit a PR.
Oh, and also you will need to modify vcvars.c to provide the correct options for finding required C/C++ headers, and calling the Gnu linker when linking Pony programs.