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

Support for PUC Lua #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elliottslaughter
Copy link
Member

This branch adds support for compiling Terra against PUC Lua (i.e. the original Lua implementation). Support for LuaJIT is preserved and existing users should be unaffected. Currently Lua version 5.1 is required.

To test, build as follows:

TERRA_USE_PUC_LUA=1 LUA_VERSION=5.1.5 make

The current support is sufficient to define Terra functions, and to call terralib.saveobj. Directly calling Terra tasks from within the same process is not supported. The limiting factor here is that the ffi library for Lua is not portable, so this support needs to be reimplemented in a portable way. In theory, this should be doable by JIT'ing the necessary glue code from Terra, but this is not yet implemented.

This branch is most beneficial on architectures like PPC64le, where LuaJIT is currently unsupported.

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.

1 participant