From 3cf9a4ceb82978be0671ada244baf2366aa65e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 5 May 2021 16:21:12 +0900 Subject: [PATCH] syntax: Don't deadlock the build if one of the jobs fails. --- helix-syntax/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 009acbff9..70d71f92d 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::(), n_jobs); + pool.join(); + // drop(tx); + assert_eq!(rx.try_iter().sum::(), n_jobs); build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript");