]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
SCRIPTS: opentracing: enable parallel builds in build-ot.sh
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jun 2021 05:35:15 +0000 (07:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Jun 2021 05:35:15 +0000 (07:35 +0200)
The script didn't make use of parallel builds, which roughly cut the
build time in half with 4 cores. This can help a bit with the CI.

scripts/build-ot.sh

index 59d6af587a202430a56136ab75122f7a3ee5cc60..1c296b64b29c1287b40a0421588515c14ca11dcd 100755 (executable)
@@ -19,7 +19,7 @@ if [ "$(cat ${HOME}/opt/.ot-cpp-version)" != "${OT_CPP_VERSION}" ]; then
     mkdir build
     cd build
     cmake -DCMAKE_INSTALL_PREFIX=${HOME}/opt -DBUILD_STATIC_LIBS=OFF -DBUILD_MOCKTRACER=OFF -DBUILD_TESTING=OFF ..
-    make
+    make -j$(nproc)
     make install
     echo "${OT_CPP_VERSION}" > "${HOME}/opt/.ot-cpp-version"
 fi
@@ -28,7 +28,7 @@ git clone https://github.com/haproxytech/opentracing-c-wrapper.git
 cd opentracing-c-wrapper
  ./scripts/bootstrap
  ./configure --prefix=${HOME}/opt --with-opentracing=${HOME}/opt
- make
+ make -j$(nproc)
  make install