Skip to content

Commit

Permalink
always build grammars with c++ 14
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe committed Apr 17, 2023
1 parent 1b016a8 commit 1450a8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helix-loader/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ fn build_tree_sitter_library(
.args(["/nologo", "/LD", "/I"])
.arg(header_path)
.arg("/Od")
.arg("/utf-8");
.arg("/utf-8")
.arg("/std:c++14");
if let Some(scanner_path) = scanner_path.as_ref() {
command.arg(scanner_path);
}
Expand All @@ -471,6 +472,7 @@ fn build_tree_sitter_library(
.arg(header_path)
.arg("-o")
.arg(&library_path)
.arg("-std=c++14")
.arg("-O3");
if let Some(scanner_path) = scanner_path.as_ref() {
if scanner_path.extension() == Some("c".as_ref()) {
Expand Down

0 comments on commit 1450a8c

Please sign in to comment.