mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
feat(install)!: remove support for C++ scanners
This commit is contained in:
parent
429e6f446b
commit
a8f5641ab3
3 changed files with 4 additions and 18 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue