summaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/build.rs3
-rw-r--r--helix-term/src/main.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/helix-term/build.rs b/helix-term/build.rs
index 974f4b5e..74c35a3a 100644
--- a/helix-term/build.rs
+++ b/helix-term/build.rs
@@ -19,7 +19,8 @@ fn main() {
if std::env::var("HELIX_DISABLE_AUTO_GRAMMAR_BUILD").is_err() {
fetch_grammars().expect("Failed to fetch tree-sitter grammars");
- build_grammars().expect("Failed to compile tree-sitter grammars");
+ build_grammars(Some(std::env::var("TARGET").unwrap()))
+ .expect("Failed to compile tree-sitter grammars");
}
println!("cargo:rerun-if-changed=../runtime/grammars/");
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index eb186d78..83af7588 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -108,7 +108,7 @@ FLAGS:
}
if args.build_grammars {
- helix_loader::grammar::build_grammars()?;
+ helix_loader::grammar::build_grammars(None)?;
return Ok(0);
}