2612: Use gmake when available

This commit is contained in:
Sebastián Zaffarano 2022-03-08 06:24:25 +01:00 committed by Kiyan
parent 2ff68da179
commit d3d1637c3c

View file

@ -105,8 +105,12 @@ function M.select_compile_command(repo, cc, compile_location)
},
}
else
local make_path = vim.fn.exepath "make"
if vim.fn.executable "gmake" then
make_path = vim.fn.exepath "gmake"
end
return {
cmd = "make",
cmd = make_path,
info = "Compiling...",
err = "Error during compilation",
opts = {