mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Attempt to make travis build with more cores
This commit is contained in:
parent
be5287aa90
commit
b8b48a2f3d
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@ set -ex
|
||||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
export CC=${C_COMPILER}
|
export CC=${C_COMPILER}
|
||||||
export CXX=${CXX_COMPILER}
|
export CXX=${CXX_COMPILER}
|
||||||
|
# make build use all available cores
|
||||||
|
export CMAKE_BUILD_PARALLEL_LEVEL=$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l)
|
||||||
|
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/${C_COMPILER}" 10
|
sudo update-alternatives --install /usr/bin/gcc gcc "/usr/bin/${C_COMPILER}" 10
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ "/usr/bin/${CXX_COMPILER}" 10
|
sudo update-alternatives --install /usr/bin/g++ g++ "/usr/bin/${CXX_COMPILER}" 10
|
||||||
|
|
Loading…
Reference in a new issue