From 27da878bb793d4f4eae2032a9a2a8acb036a22e1 Mon Sep 17 00:00:00 2001 From: sin-ack Date: Sun, 11 Dec 2022 17:36:04 +0000 Subject: [PATCH] Ports: Export CMAKE_BUILD_PARALLEL_LEVEL for ports scripts When using cmake --build, CMake will look for this environment variable to enable parallelism. The Zig port, for example, uses cmake --build, and will otherwise use a single core if cmake selects Make as the build system. This should help with all ports which use cmake --build. --- Ports/.port_include.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 0e14c0b8a7..0deca59f0d 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -9,6 +9,7 @@ fi unset SERENITY_STRIPPED_ENV export MAKEJOBS="${MAKEJOBS:-$(nproc)}" +export CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS" buildstep() { local buildstep_name=$1