mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
meson: support enableParallelChecking
This is backwards compatible, because enableParallelChecking is set by default by stdenv if enableParallelBuilding is.
This commit is contained in:
parent
04de8eaaf8
commit
bb73d9a0ce
2 changed files with 3 additions and 2 deletions
|
|
@ -91,3 +91,4 @@ Meson setup hook.
|
|||
|
||||
- `prefixKey`
|
||||
- `enableParallelBuilding`
|
||||
- `enableParallelChecking`
|
||||
|
|
|
|||
|
|
@ -63,9 +63,9 @@ mesonCheckPhase() {
|
|||
flagsArray+=("--timeout-multiplier=0")
|
||||
fi
|
||||
|
||||
# Parallel building is enabled by default.
|
||||
# Parallel checking is enabled by default.
|
||||
local buildCores=1
|
||||
if [ "${enableParallelBuilding-1}" ]; then
|
||||
if [ "${enableParallelChecking-1}" ]; then
|
||||
buildCores="$NIX_BUILD_CORES"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue