summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-12-11 17:36:04 +0000
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-11 19:55:37 -0700
commit27da878bb793d4f4eae2032a9a2a8acb036a22e1 (patch)
tree46ac76812957befd51e81eedb9c3b98f53cdd7ac
parentd9e1a6c5667803e16b76652167a57ffdfdc7dfeb (diff)
downloadserenity-27da878bb793d4f4eae2032a9a2a8acb036a22e1.zip
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.
-rwxr-xr-xPorts/.port_include.sh1
1 files changed, 1 insertions, 0 deletions
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