[Luarocks-developers] Re: [patch] msvc compilation under cygwin
David Manura
dm.lua at math2.org
Tue Sep 2 00:09:55 GMT+2 2008
> On Sat, Aug 30, 2008 at 8:50 PM, David Manura wrote:
>> The attached patch allows LuaRocks to install from source under Cygwin
>> via configure and then compile modules natively with MSVC++.
The attached new patch (luarocks-patch2) applies over the previous
patch I posted. The new patch makes the following additional changes
to configure:
(1) LUA_INTERPRETER variable is passed to Makefile. It wasn't being
set before. This is the full path to the Lua interpreter and is
needed by some "make" style builds. (BTW, this variable name gets
translated to the name LUA in cfg.lua for use in the .rockspec files.
Is there any reason for this name translation? Is this documented
anywhere?)
(2) LUA_INTERPRETER, LUA_SUFFIX, LUA_BINDIR, LUA_DIR searching code
reworked to be more general and concise.
(3) Other style changes--e.g. [ "$LUA_LIB_SET" != "yes" ] -> [ -z
"$LUA_LIB" ] . I think that is ok. There may be room for
improvement.
Also, along the lines of LUA_INTERPRETER, it would also be useful to
have a variable that indicates the full path of the luac utility.
Perhaps, bin2c will be useful to have too, but that's not included in
non-Lua Binaries installs. On the other hand, it's not necessarily
required for LuaRocks to provide these since the tools can be mostly
rewritten in Lua and bundled with each package:
http://lua-users.org/wiki/LuaCompilerInLua
http://lua-users.org/wiki/BinToCee
The dev version of LuaCOM is now bundling the Lua versions of these
tools for use in the DLL build routine so that it doesn't need to
assume that these tools are pre-installed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luarocks-patch2
Type: application/octet-stream
Size: 6750 bytes
Desc: not available
Url : http://lists.luaforge.net/pipermail/luarocks-developers/attachments/20080901/f16aa396/luarocks-patch2.obj
More information about the Luarocks-developers
mailing list