SCRIPTS: opentracing: enable parallel builds in build-ot.sh
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.
This commit is contained in:
parent
9425ed488f
commit
5ac9a393ef
@ -19,7 +19,7 @@ if [ "$(cat ${HOME}/opt/.ot-cpp-version)" != "${OT_CPP_VERSION}" ]; then
|
|||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/opt -DBUILD_STATIC_LIBS=OFF -DBUILD_MOCKTRACER=OFF -DBUILD_TESTING=OFF ..
|
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/opt -DBUILD_STATIC_LIBS=OFF -DBUILD_MOCKTRACER=OFF -DBUILD_TESTING=OFF ..
|
||||||
make
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
echo "${OT_CPP_VERSION}" > "${HOME}/opt/.ot-cpp-version"
|
echo "${OT_CPP_VERSION}" > "${HOME}/opt/.ot-cpp-version"
|
||||||
fi
|
fi
|
||||||
@ -28,7 +28,7 @@ git clone https://github.com/haproxytech/opentracing-c-wrapper.git
|
|||||||
cd opentracing-c-wrapper
|
cd opentracing-c-wrapper
|
||||||
./scripts/bootstrap
|
./scripts/bootstrap
|
||||||
./configure --prefix=${HOME}/opt --with-opentracing=${HOME}/opt
|
./configure --prefix=${HOME}/opt --with-opentracing=${HOME}/opt
|
||||||
make
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user