fix(install): explicitly set gcc as CC on Windows when cl is unavailable

This commit is contained in:
glmlm 2025-11-22 09:08:36 +09:00 committed by name
parent bb83a67612
commit ca86a5fb2c

View file

@ -281,6 +281,10 @@ end
local function do_compile(logger, compile_location)
logger:info(string.format('Compiling parser'))
if uv.os_uname().sysname == 'Windows_NT' and fn.executable('cl') == 0 then
vim.env.CC = 'gcc'
end
local r = system({
'tree-sitter',
'build',