fix(makefile): fallback to c++14 when parser does not have cxx_standard set

This commit is contained in:
Stephan Seitz 2022-02-07 22:04:04 +01:00
parent 6599887899
commit 81f2a5d702

View file

@ -113,7 +113,7 @@ function M.select_compile_command(repo, cc, compile_location)
args = {
"--makefile=" .. utils.join_path(utils.get_package_path(), "scripts", "compile_parsers.makefile"),
"CC=" .. cc,
"CXX_STANDARD=" .. repo.cxx_standard,
"CXX_STANDARD=" .. (repo.cxx_standard or 'c++14'),
},
cwd = compile_location,
},