[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Distributing Lua packages to Windows machines
- From: Javier Guerra Giraldez <javier@...>
- Date: Tue, 3 Mar 2015 13:04:18 -0500
On Mon, Mar 2, 2015 at 1:12 PM, <mchalkley@mail.com> wrote:
> Ideally, I'd like to run it with LuaJIT, but for now, I'd be thrilled
> to just get the above into a single windows exe that could be packed
> with UPX/zipped/etc.
If you're already using LuaJIT, it can save the bytecode as an .obj
that can be linked with your C application[1]. LuaJIT includes a
slight modification to require() that loads those linked bytecodes
just as if it were plain Lua files.
[1]: http://luajit.org/running.html check the -b option
--
Javier