mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
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:
parent
d9e1a6c566
commit
27da878bb7
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ fi
|
||||||
unset SERENITY_STRIPPED_ENV
|
unset SERENITY_STRIPPED_ENV
|
||||||
|
|
||||||
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
|
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
|
||||||
|
export CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS"
|
||||||
|
|
||||||
buildstep() {
|
buildstep() {
|
||||||
local buildstep_name=$1
|
local buildstep_name=$1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue