Closed vhyrro closed 2 weeks ago
Here's how I'd approach the problem:
.c
files are found in the build step, then check for available runtime Lua installations (check for the highest possible Lua version given the bounds provided in the rockspec, e.g. lua >= 5.1
would mean 5.4
, unless the user provides a --lua-version
).lua-src
, which builds the artifacts to a given location (we probably want to dump this into .cache
).
Currently, when trying to compile a set of C modules,
rocks
will not link any Lua installation on its own. This is a behaviour ofluarocks
though and so should be emulated.