mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
fix(makefile): fallback to c++14 when parser does not have cxx_standard set
This commit is contained in:
parent
6599887899
commit
81f2a5d702
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ function M.select_compile_command(repo, cc, compile_location)
|
||||||
args = {
|
args = {
|
||||||
"--makefile=" .. utils.join_path(utils.get_package_path(), "scripts", "compile_parsers.makefile"),
|
"--makefile=" .. utils.join_path(utils.get_package_path(), "scripts", "compile_parsers.makefile"),
|
||||||
"CC=" .. cc,
|
"CC=" .. cc,
|
||||||
"CXX_STANDARD=" .. repo.cxx_standard,
|
"CXX_STANDARD=" .. (repo.cxx_standard or 'c++14'),
|
||||||
},
|
},
|
||||||
cwd = compile_location,
|
cwd = compile_location,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue