From 0fb02ac5c39423b5c863eb7c8dd7b093879f1488 Mon Sep 17 00:00:00 2001 From: Gabriel Holodak Date: Tue, 24 Dec 2024 01:07:19 -0500 Subject: fix(install): use std=c11 --- lua/nvim-treesitter/shell_command_selectors.lua | 3 +++ 1 file changed, 3 insertions(+) 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") -- cgit v1.2.3-70-g09d2