meson: support enableParallelChecking

This is backwards compatible, because enableParallelChecking is set by
default by stdenv if enableParallelBuilding is.
This commit is contained in:
Alyssa Ross 2025-06-29 18:33:57 +02:00
parent 04de8eaaf8
commit bb73d9a0ce
2 changed files with 3 additions and 2 deletions

View File

@ -91,3 +91,4 @@ Meson setup hook.
- `prefixKey` - `prefixKey`
- `enableParallelBuilding` - `enableParallelBuilding`
- `enableParallelChecking`

View File

@ -63,9 +63,9 @@ mesonCheckPhase() {
flagsArray+=("--timeout-multiplier=0") flagsArray+=("--timeout-multiplier=0")
fi fi
# Parallel building is enabled by default. # Parallel checking is enabled by default.
local buildCores=1 local buildCores=1
if [ "${enableParallelBuilding-1}" ]; then if [ "${enableParallelChecking-1}" ]; then
buildCores="$NIX_BUILD_CORES" buildCores="$NIX_BUILD_CORES"
fi fi