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.
This commit is contained in:
sin-ack 2022-12-11 17:36:04 +00:00 committed by Andrew Kaster
parent d9e1a6c566
commit 27da878bb7

View file

@ -9,6 +9,7 @@ fi
unset SERENITY_STRIPPED_ENV
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
export CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS"
buildstep() {
local buildstep_name=$1