From f86806dca32e51ea1fdc737f2cfd20cf3a1156bd Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 7 Jul 2025 17:11:59 +0200 Subject: [PATCH] CMake: Make ninja pool jobs setup report computed values. Usefull especially in buildbots. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e73bf5f526e..dbe716dbb36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1822,6 +1822,7 @@ Define the maximum number of concurrent heavy compilation jobs, for ninja build FORCE ) mark_as_advanced(NINJA_MAX_NUM_PARALLEL_COMPILE_HEAVY_JOBS) + message(STATUS "Using NINJA_POOL_JOBS: max heavy compile jobs: ${NINJA_MAX_NUM_PARALLEL_COMPILE_HEAVY_JOBS}") set(_compile_heavy_jobs) set(_compile_heavy_jobs_max) @@ -1848,6 +1849,7 @@ Define the maximum number of concurrent heavy compilation jobs, for ninja build set(NINJA_MAX_NUM_PARALLEL_COMPILE_JOBS "${_compile_jobs}" CACHE STRING "Define the maximum number of concurrent compilation jobs, for ninja build system." FORCE) mark_as_advanced(NINJA_MAX_NUM_PARALLEL_COMPILE_JOBS) + message(STATUS "Using NINJA_POOL_JOBS: max regular compile jobs: ${NINJA_MAX_NUM_PARALLEL_COMPILE_JOBS}") set(_compile_jobs) set(_compile_jobs_max) @@ -1856,6 +1858,7 @@ Define the maximum number of concurrent heavy compilation jobs, for ninja build set(NINJA_MAX_NUM_PARALLEL_LINK_JOBS "1" CACHE STRING "Define the maximum number of concurrent link jobs, for ninja build system." FORCE) mark_as_advanced(NINJA_MAX_NUM_PARALLEL_LINK_JOBS) + message(STATUS "Using NINJA_POOL_JOBS: max linking jobs: ${NINJA_MAX_NUM_PARALLEL_LINK_JOBS}") set(_NUM_CORES) set(_TOT_MEM)