diff options
| author | Gabriel Holodak <gthepiper@gmail.com> | 2024-12-24 01:07:19 -0500 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-01-20 08:50:52 +0100 |
| commit | 0fb02ac5c39423b5c863eb7c8dd7b093879f1488 (patch) | |
| tree | a03f3851434bbbda954ba1e03a7678565766ca88 /lua | |
| parent | fix(install): preserve command return code on Windows (diff) | |
| download | nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar.gz nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar.bz2 nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar.lz nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar.xz nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.tar.zst nvim-treesitter-0fb02ac5c39423b5c863eb7c8dd7b093879f1488.zip | |
fix(install): use std=c11
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/shell_command_selectors.lua | 3 |
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") |
