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

Smarter Lua detection in Makefile #636

Closed
wants to merge 3 commits into from
Closed

Smarter Lua detection in Makefile #636

wants to merge 3 commits into from

Conversation

systemed
Copy link
Owner

@systemed systemed commented Jan 7, 2024

Detecting Lua is hard and currently our Makefile takes a fairly blunt approach of just checking some likely paths.

This PR makes it a little smarter by trying to find the Lua executable and using that to detect version/implementation (i.e. Lua or LuaJIT). We can then use this knowledge to inform the paths we look in.

(CMake of course does all this automatically. I could have pulled in pkg-config but would rather not add the extra dependency.)

Tested on Ubuntu 20.04 and Intel MacOS 10.14 with a couple of different Lua setups.

Fixes #633.

This was referenced Jan 7, 2024
@systemed
Copy link
Owner Author

Merged into v3.

@systemed systemed closed this Jan 14, 2024
@systemed systemed deleted the lua_makefile branch January 14, 2024 17:36
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.

Improve Lua detection in Makefile
1 participant