From 27f9348ee7648f87db0c37fdccf087a676d3264f Mon Sep 17 00:00:00 2001 From: panicgh <79252025+panicgh@users.noreply.github.com> Date: Sun, 21 Nov 2021 21:40:48 +0000 Subject: [PATCH] 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. --- pkgs/development/tools/build-managers/wafHook/setup-hook.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/build-managers/wafHook/setup-hook.sh b/pkgs/development/tools/build-managers/wafHook/setup-hook.sh index 439350c3abc2..6cea8fcc2ea8 100644 --- a/pkgs/development/tools/build-managers/wafHook/setup-hook.sh +++ b/pkgs/development/tools/build-managers/wafHook/setup-hook.sh @@ -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 }