summaryrefslogtreecommitdiff
path: root/textproc/tree-sitter-grammars/files
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/tree-sitter-grammars/files')
-rw-r--r--textproc/tree-sitter-grammars/files/patch-src_main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/textproc/tree-sitter-grammars/files/patch-src_main.rs b/textproc/tree-sitter-grammars/files/patch-src_main.rs
index 4197c86a3f26..ea6c62211292 100644
--- a/textproc/tree-sitter-grammars/files/patch-src_main.rs
+++ b/textproc/tree-sitter-grammars/files/patch-src_main.rs
@@ -31,3 +31,11 @@
let path = if let Some(subpath) = grammar.source.subpath.as_ref() {
path.join(subpath)
} else {
+@@ -171,6 +171,7 @@ fn build_tree_sitter(name: &str, path: &Path, output:
+ fn build_tree_sitter(name: &str, path: &Path, output: &Path) -> Result<()> {
+ println!("-----------------------------------");
+ println!("now building tree sitter for {name}");
++ std::env::set_var("XDG_CACHE_HOME", "WRKDIR/.cache");
+ let output = Command::new("tree-sitter")
+ .current_dir(path)
+ .arg("build")