mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/sin-ack Commit: https://github.com/SerenityOS/serenity/commit/27da878bb7 Pull-request: https://github.com/SerenityOS/serenity/pull/15428 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ fi
|
|||
unset SERENITY_STRIPPED_ENV
|
||||
|
||||
export MAKEJOBS="${MAKEJOBS:-$(nproc)}"
|
||||
export CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS"
|
||||
|
||||
buildstep() {
|
||||
local buildstep_name=$1
|
||||
|
|
Loading…
Reference in a new issue