aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-05 00:21:33 +0000
committerBlaž Hrastnik2021-06-05 00:21:33 +0000
commit72eaaaac995cf55d37994c24cc0215c8370c6443 (patch)
tree5f9bc1eec091b9eab38a758ba5ca0336e90bc1c2
parent8f78c0c61291d81180ca0549b4df1fada6a13498 (diff)
syntax: Build C++ grammars as c++14
The haskell grammar requires at last c++14 to build. Fixes #117
-rw-r--r--helix-syntax/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs
index fd88138b..2e70ef1a 100644
--- a/helix-syntax/build.rs
+++ b/helix-syntax/build.rs
@@ -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));
}