3 ms·
How does LuaRocks implement the cross-compilation? Lua is widely used on embedded platforms, so I wonder how easy it will be to just take a random module from
by zserge 12y ago
How does LuaRocks implement the cross-compilation? Lua is widely used on embedded platforms, so I wonder how easy it will be to just take a random module from the LuaRocks and build/deploy it for some MIPS or ARM board?
- catwell 12y agoPure Lua modules do not need to be cross-compiled. Simple C-based modules using the "builting" build back-end will probably work well with cross-compilation just by setting a few variables (CC, LD, CFLAGS...). More complex modules will use the "make" or "cmake" back-ends and you will need to pass specific options to their build systems, which LuaRocks can do. See http://luarocks.org/en/Config_file_format http://luarocks.org/en/Config_file_format for more information.
- zserge 12y agoThanks! Config file looks like a powerful way to customize builds. But am I right saying that I will have two configs (for host and target) and I will have to pass --force-config option to toggle them?
- catwell 12y agoNo, you can use environment variables to choose at runtime (first paragraph of http://luarocks.org/en/Config_file_format http://luarocks.org/en/Config_file_format)