Skip to content

Commit

Permalink
fix(cache): ad jit.verion to cache version string. Fixes #225
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 29, 2022
1 parent 95b9cf7 commit e3ffcff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local uv = vim.loop

local M = {}
M.dirty = false
M.VERSION = "1"
M.VERSION = "1" .. jit.version

---@class LazyCacheConfig
M.config = {
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function M.setup(spec, opts)
if vim.fn.has("nvim-0.8.0") ~= 1 then
return vim.notify("lazy.nvim requires Neovim >= 0.8.0", vim.log.levels.ERROR, { title = "lazy.nvim" })
end
if not pcall(require, "ffi") then
if not (pcall(require, "ffi") and jit and jit.version) then
return vim.notify("lazy.nvim requires Neovim built with LuaJIT", vim.log.levels.ERROR, { title = "lazy.nvim" })
end
local start = vim.loop.hrtime()
Expand Down

0 comments on commit e3ffcff

Please sign in to comment.