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

Windows support #23

Merged
merged 7 commits into from
Jul 28, 2022
Merged

Windows support #23

merged 7 commits into from
Jul 28, 2022

Conversation

hishamhm
Copy link
Contributor

This expands on the work by @chipsenkbeil by adding support for PUC-Rio Lua on Windows, by launching the compiler ourselves, since the provided Makefile is pretty much Unix-only. The logic here is based on similar Python code implemented by hererocks.

The PUC-Rio Lua build is done using MSVC, while the LuaJIT build by @chipsenkbeil uses Mingw. I haven't tried building using the upstream Lua compiler with Mingw — I've personally only used it for cross-compiling from a Unix host, not sure how well that works from Windows, and I thought it would be useful to provide a MSVC-based option. To use MSVC, one needs to enable the compiler that's included in Actions's windows-latest container. Hererocks jumps through several hoops to do that, but here it was a matter of loading another Action, illamy/msvc-dev-cmd.

Additional commits:

  • make sure that lua51.dll is installed in the bin dir when deploying LuaJIT (the visible difference is that the "Test Lua" step now correctly displays hi from lua on all jobs; LuaJIT did compile on (windows support) Update to use posix path #19 and that job passed, but the output didn't show before).
  • bump Lua 5.4 to 5.4.4
  • .editorconfig file for convenience

Closes #19.
Closes #6.

@leafo leafo merged commit d72f318 into leafo:master Jul 28, 2022
@leafo
Copy link
Owner

leafo commented Jul 28, 2022

Looks good, thanks for the contribution

telemachus added a commit to telemachus/split that referenced this pull request Jan 21, 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

Successfully merging this pull request may close these issues.

Can't install Lua 5.1+ on windows
4 participants