diff options
Diffstat (limited to 'helix-syntax/build.rs')
-rw-r--r-- | helix-syntax/build.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 6b721c11..627a0290 100644 --- a/helix-syntax/build.rs +++ b/helix-syntax/build.rs @@ -1,3 +1,4 @@ +use rayon::prelude::*; use std::path::PathBuf; use std::{env, fs}; @@ -114,10 +115,10 @@ fn main() { "tree-sitter-cpp".to_string(), ]; let dirs = collect_tree_sitter_dirs(ignore); - for dir in dirs { + dirs.par_iter().for_each(|dir| { let language = &dir[12..]; // skip tree-sitter- prefix build_dir(&dir, &language); - } + }); build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript"); } |