diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index fd88138b4..2e70ef1ab 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)); }