From e68bd2f9801a0df7c8174742800124a27c32403f Mon Sep 17 00:00:00 2001 From: David Adam Date: Sun, 5 Oct 2025 23:00:10 +0800 Subject: [PATCH] build_tools/check.sh: add support for FISH_TEST_MAX_CONCURRENCY --- build_tools/check.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_tools/check.sh b/build_tools/check.sh index bac849e5c..a25854230 100755 --- a/build_tools/check.sh +++ b/build_tools/check.sh @@ -43,6 +43,11 @@ fi # Currently, all builds are debug builds. build_dir="$target_dir/debug" +if [ -n "$FISH_TEST_MAX_CONCURRENCY" ]; then + export RUST_TEST_THREADS="$FISH_TEST_MAX_CONCURRENCY" + export CARGO_BUILD_JOBS="$FISH_TEST_MAX_CONCURRENCY" +fi + template_file=$(mktemp) FISH_GETTEXT_EXTRACTION_FILE=$template_file cargo build --workspace --all-targets --features=gettext-extract if $lint; then