mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10: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)
|
local function do_compile(logger, compile_location)
|
||||||
logger:info(string.format('Compiling parser'))
|
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({
|
local r = system({
|
||||||
'tree-sitter',
|
'tree-sitter',
|
||||||
'build',
|
'build',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue