mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
stdenv: set enableParallelBuilding
explicitly if enableParallelBuildingByDefault
is set
Without the change we don't propagate `enableParallelBuilding = true` and leave most builds sequential. Noticed on `mythtv` package which did not specify parallelism and `config.enableParallelBuildingByDefault = true` had no effect.
This commit is contained in:
parent
887e342eaa
commit
428107f837
@ -418,6 +418,7 @@ else let
|
||||
outputHashAlgo = attrs.outputHashAlgo or "sha256";
|
||||
outputHashMode = attrs.outputHashMode or "recursive";
|
||||
} // lib.optionalAttrs (enableParallelBuilding) {
|
||||
inherit enableParallelBuilding;
|
||||
enableParallelChecking = attrs.enableParallelChecking or true;
|
||||
} // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != [] || stdenv.hostPlatform.isMusl) {
|
||||
NIX_HARDENING_ENABLE = enabledHardeningOptions;
|
||||
|
Loading…
Reference in New Issue
Block a user