feat!: drop makefile support, norg parser

Norg install_info and queries are maintained by neorg.

All other parsers are compatible with C++11, so fix that as standard.
(Can be bumped if all supported platforms support C++14.)

Remove Makefile support, as it's no longer needed.
This commit is contained in:
Christian Clason 2023-06-08 13:25:31 +02:00
parent c5152f3e83
commit f0a984347c
7 changed files with 3 additions and 81 deletions

View file

@ -391,19 +391,8 @@ end
---@param compile_location string
---@return SystemCompleted
local function do_compile(repo, cc, compile_location)
local make = M.select_executable({ 'gmake', 'make' })
local cmd --- @type string[]
if cc:find('cl$') or cc:find('cl.exe$') or not repo.use_makefile or iswin or not make then
local args = vim.tbl_flatten(select_compiler_args(repo, cc))
cmd = vim.list_extend({ cc }, args)
else
cmd = {
make,
'--makefile=' .. M.get_package_path('scripts', 'compile_parsers.makefile'),
'CC=' .. cc,
}
end
local args = vim.tbl_flatten(select_compiler_args(repo, cc))
local cmd = vim.list_extend({ cc }, args)
return system(cmd, { cwd = compile_location })
end