add another lua search path for JIT

This commit is contained in:
Vanessa Dannenberg 2019-02-13 21:46:50 -05:00 committed by Diego Martínez
parent 66bb7fc47d
commit 1c23f8987b
1 changed files with 6 additions and 0 deletions

View File

@ -23,11 +23,17 @@ ie.package.path =
-- /usr/local/share and /usr/local/lib but LuaSocket is often installed under
-- /usr/share and /usr/lib.
if not rawget(_G, "jit") and package.config:sub(1, 1) == "/" then
ie.package.path = ie.package.path..
";/usr/share/lua/5.1/?.lua"..
";/usr/share/lua/5.1/?/init.lua"
ie.package.cpath = ie.package.cpath..
";/usr/lib/lua/5.1/?.so"
ie.package.cpath = "/usr/lib/x86_64-linux-gnu/lua/5.1/?.so;"..ie.package.cpath
end
-- Temporarily set require so that LuaIRC can access it