mirror of https://github.com/folke/lazy.nvim.git
fix(cache): remove dependency on jit
This commit is contained in:
parent
5b7b8c5149
commit
942c805b84
|
@ -170,7 +170,8 @@ end
|
||||||
---@private
|
---@private
|
||||||
function Cache.loader_lib(modname)
|
function Cache.loader_lib(modname)
|
||||||
local start = uv.hrtime()
|
local start = uv.hrtime()
|
||||||
local modpath = M.find(modname, { patterns = jit.os:find("Windows") and { ".dll" } or { ".so" } })
|
local is_win = uv.os_uname().sysname:lower():find("win", 1, true)
|
||||||
|
local modpath = M.find(modname, { patterns = is_win and { ".dll" } or { ".so" } })
|
||||||
---@type function?, string?
|
---@type function?, string?
|
||||||
if modpath then
|
if modpath then
|
||||||
-- Making function name in Lua 5.1 (see src/loadlib.c:mkfuncname) is
|
-- Making function name in Lua 5.1 (see src/loadlib.c:mkfuncname) is
|
||||||
|
|
Loading…
Reference in New Issue