Skip to content

Commit

Permalink
fix(cache): remove dependency on jit
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 15, 2023
1 parent 5b7b8c5 commit 942c805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ end
---@private
function Cache.loader_lib(modname)
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?
if modpath then
-- Making function name in Lua 5.1 (see src/loadlib.c:mkfuncname) is
Expand Down

0 comments on commit 942c805

Please sign in to comment.