From 81f2a5d702f3406b64e78d0493a2fe27d687aed6 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 7 Feb 2022 22:04:04 +0100 Subject: fix(makefile): fallback to c++14 when parser does not have cxx_standard set --- lua/nvim-treesitter/shell_command_selectors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index 5a16b58f5..eb1860517 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -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, }, -- cgit v1.2.3-70-g09d2