aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index b6e3c3de3..d9d2a16a2 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -347,7 +347,7 @@ local function select_compiler_args(repo, compiler)
if compiler:find('zig$') or compiler:find('zig.exe$') then
return {
- 'c++',
+ 'cc',
'-o',
'parser.so',
repo.files,
@@ -374,20 +374,6 @@ local function select_compiler_args(repo, compiler)
end
end
- if
- #vim.iter.filter(
- --- @param file string
- --- @return boolean
- function(file)
- local ext = fn.fnamemodify(file, ':e')
- return ext == 'cc' or ext == 'cpp' or ext == 'cxx'
- end,
- repo.files
- ) > 0
- then
- add_cc_arg('-lstdc++')
- end
-
if not iswin then
add_cc_arg('-Wall')
add_cc_arg('-Wextra')