From 35bfffb55624685eb78952304bec112fe5e48691 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Wed, 22 Dec 2021 22:18:27 -0500 Subject: Auto-detect level of parallelism --- util/ci/build.sh | 2 +- util/ci/build_prometheus_cpp.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/ci/build.sh b/util/ci/build.sh index 32b5c92a7..fb2ec945f 100755 --- a/util/ci/build.sh +++ b/util/ci/build.sh @@ -5,4 +5,4 @@ cd build cmake -DCMAKE_BUILD_TYPE=Debug \ -DRUN_IN_PLACE=TRUE -DENABLE_GETTEXT=TRUE \ -DBUILD_SERVER=TRUE ${CMAKE_FLAGS} .. -make -j2 +make -j$(($(nproc) + 1)) diff --git a/util/ci/build_prometheus_cpp.sh b/util/ci/build_prometheus_cpp.sh index edfd574cd..f3e4a5559 100755 --- a/util/ci/build_prometheus_cpp.sh +++ b/util/ci/build_prometheus_cpp.sh @@ -8,6 +8,6 @@ cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr/local \ -DCMAKE_BUILD_TYPE=Release \ -DENABLE_TESTING=0 -make -j2 +make -j$(nproc) sudo make install -- cgit v1.2.3