diff options
author | Blaž Hrastnik | 2021-05-05 07:21:12 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-05 07:21:12 +0000 |
commit | 3cf9a4ceb82978be0671ada244baf2366aa65e6d (patch) | |
tree | 211f3a3ade6572695789facf03871a06b6ecb7ac /helix-syntax | |
parent | b6a22e955b6146345674951859f6ef97e29355bc (diff) |
syntax: Don't deadlock the build if one of the jobs fails.
Diffstat (limited to 'helix-syntax')
-rw-r--r-- | helix-syntax/build.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 009acbff..70d71f92 100644 --- a/helix-syntax/build.rs +++ b/helix-syntax/build.rs @@ -126,7 +126,9 @@ fn main() { tx.send(1).unwrap(); }); } - assert_eq!(rx.iter().take(n_jobs).sum::<usize>(), n_jobs); + pool.join(); + // drop(tx); + assert_eq!(rx.try_iter().sum::<usize>(), n_jobs); build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript"); |