diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2019-08-21 16:17:18 +0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-08-23 12:18:49 -0300 |
commit | 8a957d68133a8af6650c4f8349646fa9420258f3 (patch) | |
tree | 07fc6be979be310e615e58af7958dc87e05c55bb | |
parent | 1d3bb56b309ce0463249852f901147157f34adfa (diff) | |
download | luarocks-8a957d68133a8af6650c4f8349646fa9420258f3.tar.gz luarocks-8a957d68133a8af6650c4f8349646fa9420258f3.tar.bz2 luarocks-8a957d68133a8af6650c4f8349646fa9420258f3.zip |
support RaptorJIT
RaptorJIT is a fork of LuaJIT, where jit.version = 'RaptorJIT 1.0.0'
this fix avoids a failure in find_lua_incdir()
luajitver and prefix .. "/include/luajit-" .. luajitver:match("^(%d+%.%d+)"),
--> attempt to concatenate a nil value
-rw-r--r-- | src/luarocks/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 6caba8cd..8b84df4d 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -600,7 +600,7 @@ do | |||
600 | 600 | ||
601 | local ljv | 601 | local ljv |
602 | if cfg.lua_version == "5.1" then | 602 | if cfg.lua_version == "5.1" then |
603 | ljv = util.popen_read(Q(cfg.variables["LUA_BINDIR"] .. "/" .. cfg.lua_interpreter) .. ' -e "io.write(tostring(jit and jit.version:sub(8)))"') | 603 | ljv = util.popen_read(Q(cfg.variables["LUA_BINDIR"] .. "/" .. cfg.lua_interpreter) .. ' -e "io.write(tostring(jit and jit.version:gsub([[^%w-JIT ]], [[]])))"') |
604 | if ljv == "nil" then | 604 | if ljv == "nil" then |
605 | ljv = nil | 605 | ljv = nil |
606 | end | 606 | end |