Skip to content

Commit 457b63c

Browse files
bbannierWilfred
authored andcommitted
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.
1 parent e214b81 commit 457b63c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl TreeSitterParser {
2727
cpp_build
2828
.include(&dir)
2929
.cpp(true)
30+
.flag("--std=c++14")
3031
.flag("-Wno-unused-parameter")
3132
.flag("-Wno-ignored-qualifiers");
3233
for file in cpp_files {

0 commit comments

Comments
 (0)