mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
fix(install): use std=c11
This commit is contained in:
parent
82939d5941
commit
0fb02ac5c3
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ function M.select_compiler_args(repo, compiler)
|
||||||
"/Isrc",
|
"/Isrc",
|
||||||
repo.files,
|
repo.files,
|
||||||
"-Os",
|
"-Os",
|
||||||
|
"/std:c11",
|
||||||
"/utf-8",
|
"/utf-8",
|
||||||
"/LD",
|
"/LD",
|
||||||
}
|
}
|
||||||
|
|
@ -105,6 +106,7 @@ function M.select_compiler_args(repo, compiler)
|
||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-shared",
|
"-shared",
|
||||||
"-Os",
|
"-Os",
|
||||||
|
"-std=c11",
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
local args = {
|
local args = {
|
||||||
|
|
@ -113,6 +115,7 @@ function M.select_compiler_args(repo, compiler)
|
||||||
"-I./src",
|
"-I./src",
|
||||||
repo.files,
|
repo.files,
|
||||||
"-Os",
|
"-Os",
|
||||||
|
"-std=c11",
|
||||||
}
|
}
|
||||||
if fn.has "mac" == 1 then
|
if fn.has "mac" == 1 then
|
||||||
table.insert(args, "-bundle")
|
table.insert(args, "-bundle")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue