[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to get LuaC to compile all lua files into one file?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 20 Sep 2006 11:07:13 -0300
> Is there a way to get LuaC to take all of the files required or used by
> a target and compile them into one single file?
It does that already. luac a.lua b.lua c.lua ... will generate a single
loadable file that is equivalent to loading and executing a.lua, b.lua,
c.lua etc. in that order. If you files use "require" you may start that
list with a stub for require that does nothing or whatever is suitable
for your app.
--lhf