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:
panicgh 2021-11-21 21:40:48 +00:00 committed by GitHub
parent 28625f7861
commit 27f9348ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}