summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-05-12 22:44:17 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-05-12 22:44:17 -0400
commitb8b48a2f3dfd7f32700147b324c761c85122cfe1 (patch)
treec02ff3c750855517f6aa3f088ee6c71cd10dbe23
parentUpdate Travis Install Script (diff)
downloadnheko-b8b48a2f3dfd7f32700147b324c761c85122cfe1.tar.xz
Attempt to make travis build with more cores
-rwxr-xr-x.ci/script.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/.ci/script.sh b/.ci/script.sh

index 07ff56ed..cf8b524b 100755 --- a/.ci/script.sh +++ b/.ci/script.sh
@@ -5,6 +5,8 @@ set -ex if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC=${C_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/g++ g++ "/usr/bin/${CXX_COMPILER}" 10