aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 79bdb763f..ee1d64745 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -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")