From a8f5641ab3c8fbdfd1e454821ab34fc7db2c2651 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 24 Mar 2024 10:30:37 +0100 Subject: feat(install)!: remove support for C++ scanners --- lua/nvim-treesitter/install.lua | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lua') 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') -- cgit v1.2.3-70-g09d2