diff options
author | yvt | 2022-07-20 14:56:26 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-08-02 03:04:09 +0000 |
commit | 6d16d2cbc910f2e3e4131fae41a8cd67c287e6a5 (patch) | |
tree | 41055e4b1e0e27fa2105bfba767502f32ee891a7 /helix-term/build.rs | |
parent | f6f054ae5b091a608233b1e3d105e1032a8d676b (diff) |
feat: support grammar cross-compilation
Diffstat (limited to 'helix-term/build.rs')
-rw-r--r-- | helix-term/build.rs | 3 |
1 files changed, 2 insertions, 1 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/"); |