Fix building of e.g., vendor/tree-sitter-haskell-src/scanner.cc

At least this parser uses C++11 (lambda expressions) and C++14 features
(lambda `auto` parameter types). Since the default C++ standard of
compilers can vary, this patch explicitly sets C++14 mode when building
any vendored C++ files.
pull/41/head
Benjamin Bannier 2021-09-26 23:23:49 +07:00 committed by Wilfred Hughes
parent e214b818de
commit 457b63c758
1 changed files with 1 additions and 0 deletions

@ -27,6 +27,7 @@ impl TreeSitterParser {
cpp_build
.include(&dir)
.cpp(true)
.flag("--std=c++14")
.flag("-Wno-unused-parameter")
.flag("-Wno-ignored-qualifiers");
for file in cpp_files {