I want to be able to run something like luarocks-jit install X and have the newly installed rock use luajit as it's interpreter. Ultimately, I'm trying to run my busted tests through luajit.
Here's what I've tried:
Current versions of luarocks have a "--lua-version" flag in the configure script, but it only accepts "5.1" or "5.2", so no dice there. I've thought about editing that script to accept "jit" as well, but I haven't done it yet.
I've tried to follow this wiki page, but it was written for a different OS and I'm suspicious it's out of date for a couple of reasons:
- I can't find any documentation for a lot of the variables it references (LUA_BINDIR, etc)
- The scripts at /usr/local/bin/luarocks5.1 on my machine look totally different than those on the page.
- The config-X.lua files shown on the page also look rather different than what I have installed.
Actually though, I'm having to do this on an unfortunately old version of Ubuntu (7.10) so perhaps it's more likely that it is my system that's out of date. Either way, I couldn't get luarocks-jit working.
Thanks for your help.