wafHook: always enable parallel building (#136641)
Follow the same pattern as used in the cmake setup hook to assume `enableParallelBuilding=1` when unset by the user. This makes wafHook honor `NIX_BUILD_CORES`. See #136368 and #136641.
This commit is contained in:
parent
28625f7861
commit
27f9348ee7
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ wafConfigurePhase() {
|
|||
echoCmd 'configure flags' "${flagsArray[@]}"
|
||||
python "$wafPath" "${flagsArray[@]}"
|
||||
|
||||
if ! [[ -v enableParallelBuilding ]]; then
|
||||
enableParallelBuilding=1
|
||||
echo "waf: enabled parallel building"
|
||||
fi
|
||||
|
||||
runHook postConfigure
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue