Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/sqlite/defs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ local clib = (function()
end

if os.sysname == "Darwin" then
return os.machine == "arm64" and "/opt/homebrew/opt/sqlite/lib/libsqlite3.dylib"
local homebrew_prefix = luv.os_getenv "HOMEBREW_PREFIX" or "/opt/homebrew"
return os.machine == "arm64" and homebrew_prefix .. "/opt/sqlite/lib/libsqlite3.dylib"
or "/usr/local/opt/sqlite3/lib/libsqlite3.dylib"
end
end)()
Expand Down
Loading