From 3cf9a4ceb82978be0671ada244baf2366aa65e6d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 5 May 2021 16:21:12 +0900 Subject: syntax: Don't deadlock the build if one of the jobs fails. --- helix-syntax/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-syntax/build.rs') 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::(), 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"); -- cgit v1.2.3-70-g09d2