mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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",
|
||||
repo.files,
|
||||
"-Os",
|
||||
"/std:c11",
|
||||
"/utf-8",
|
||||
"/LD",
|
||||
}
|
||||
|
|
@ -105,6 +106,7 @@ function M.select_compiler_args(repo, compiler)
|
|||
"-Isrc",
|
||||
"-shared",
|
||||
"-Os",
|
||||
"-std=c11",
|
||||
}
|
||||
else
|
||||
local args = {
|
||||
|
|
@ -113,6 +115,7 @@ function M.select_compiler_args(repo, compiler)
|
|||
"-I./src",
|
||||
repo.files,
|
||||
"-Os",
|
||||
"-std=c11",
|
||||
}
|
||||
if fn.has "mac" == 1 then
|
||||
table.insert(args, "-bundle")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue