2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-02 20:32:09 +00:00

Corrected CPU count detection on OS X in CI jobs.

This commit is contained in:
Andrey Semashev
2019-01-02 18:49:06 +03:00
parent 14690aae81
commit d2fa5fcce5

View File

@@ -259,8 +259,9 @@ install:
script:
- |-
echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam
- if [ -n "$CXXSTD64" ]; then echo ""; echo "Testing 64-bit targets"; echo ""; ./b2 -j `nproc` libs/atomic/test toolset=$TOOLSET address-model=64 cxxstd=$CXXSTD64; fi
- if [ -n "$CXXSTD32" ]; then echo ""; echo "Testing 32-bit targets"; echo ""; ./b2 -j `nproc` libs/atomic/test toolset=$TOOLSET address-model=32 cxxstd=$CXXSTD32; fi
- BUILD_JOBS=`(nproc || sysctl -n hw.ncpu) 2> /dev/null`
- if [ -n "$CXXSTD64" ]; then echo ""; echo "Testing 64-bit targets"; echo ""; ./b2 -j $BUILD_JOBS libs/atomic/test toolset=$TOOLSET address-model=64 cxxstd=$CXXSTD64; fi
- if [ -n "$CXXSTD32" ]; then echo ""; echo "Testing 32-bit targets"; echo ""; ./b2 -j $BUILD_JOBS libs/atomic/test toolset=$TOOLSET address-model=32 cxxstd=$CXXSTD32; fi
notifications:
email: