mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(install): explicitly set gcc as CC on Windows when cl is unavailable
This commit is contained in:
parent
bb83a67612
commit
ca86a5fb2c
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue