From 72eaaaac995cf55d37994c24cc0215c8370c6443 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 5 Jun 2021 09:21:33 +0900 Subject: syntax: Build C++ grammars as c++14 The haskell grammar requires at last c++14 to build. Fixes #117 --- helix-syntax/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, 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)); } -- cgit v1.2.3-70-g09d2