feat(install)!: remove support for C++ scanners

This commit is contained in:
Christian Clason 2024-03-24 10:30:37 +01:00
parent 429e6f446b
commit a8f5641ab3
3 changed files with 4 additions and 18 deletions

View file

@ -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')