diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2022-12-11 17:36:04 +0000 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-11 19:55:37 -0700 |
commit | 27da878bb793d4f4eae2032a9a2a8acb036a22e1 (patch) | |
tree | 46ac76812957befd51e81eedb9c3b98f53cdd7ac | |
parent | d9e1a6c5667803e16b76652167a57ffdfdc7dfeb (diff) | |
download | serenity-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-x | Ports/.port_include.sh | 1 |
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 |