[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embed extra search paths into Lua build?
- From: William Ahern <william@...>
- Date: Mon, 13 Jul 2015 11:56:42 -0700
On Sat, Jul 11, 2015 at 05:37:28PM -0300, Luiz Henrique de Figueiredo wrote:
> > Ideally, I would be able to add in a preprocessor definition like
> > -DLUA_PATH_EXTRA="./modules/?.lua" when compiling and wouldn't have to
> > change the actual source (so we can keep the same build process for
> > subsequent versions).
> >
> > Is something like this already provided? Am I stuck with changing
> > LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT in luaconf.h?
>
> You can write your definitions in a file, say mydefs.h, and then
> build Lua with -DLUA_USER_H='"mydefs.h"'.
>
I can't believe I missed this feature all these years. I'm embarrassed for
myself.