syntax: Build C++ grammars as c++14

The haskell grammar requires at last c++14 to build.

Fixes #117
This commit is contained in:
Blaž Hrastnik 2021-06-05 09:21:33 +09:00
parent 8f78c0c612
commit 72eaaaac99

View file

@ -63,7 +63,8 @@ fn build_cpp(files: Vec<String>, language: &str) {
.include(PathBuf::from(file).parent().unwrap())
.pic(true)
.warnings(false)
.cpp(true);
.cpp(true)
.flag("-std=c++14");
}
build.compile(&format!("tree-sitter-{}-cpp", language));
}