Conversation
|
I am not a fan of changing our vendored libs outside of updating them. Are these libraries buildable with Cygwin itself? If so, let's figure out why we can't build them in Premake (or if we just need to update our versions). If not, they will break again when we inevitably update our libraries. |
|
Thank you very much for your reply. I gave a look to the sources of cURL and it seems to me that this library has been already modified. LUA also needed a fix. These two fixes seem to be the only ones outside the sources of premake. BTW, is it possibile to build premake without using the built-in libraries? |
|
We definitely have made some minor changes, but we try to really keep them to an absolute minimum. We know stuff will break as soon as we try to update the libraries, and it's something I'm worried about. As for how to use system libraries, take a look at the build CI. |
|
Just for information, I contributed a patch to LUA for supporting CYGWIN: https://groups.google.com/g/lua-l/c/8-ZBF5pW6cA Now let's hope that it will be included soon into the next release. |
What does this PR do?
This PR adds support for CYGWIN.
After these few fixes, premake can be compiled and used for this new platform.
How does this PR change Premake's behavior?
These changes won't affect support for existing plaftorms and targets.
During my debug, I discovered that into
src/base/os.luathere was a tiny mistake because it was adding"/usr/lib64/"instead of"/usr/lib64"(note the final"/"at the end of the string), so I fixed it. However, this is a minimal and safe fix, as you can see.Anything else we should know?
CYGWIN follows much more BSD than Linux.
This allows to avoid duplications of code into the makefile.
So, once you get the sources fixed by this PR, you can build premake for CYGWIN by using this command:
After that, you will find the executable of premake under the
bin/releasedirectory.The new port also passed all tests successfully.
Did you check all the boxes?
closes #XXXXin comment to auto-close issue when PR is merged)You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!