diff options
Diffstat (limited to 'PxShared/buildtools/steps/build_all_linux.sh')
| -rw-r--r-- | PxShared/buildtools/steps/build_all_linux.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PxShared/buildtools/steps/build_all_linux.sh b/PxShared/buildtools/steps/build_all_linux.sh new file mode 100644 index 0000000..167912f --- /dev/null +++ b/PxShared/buildtools/steps/build_all_linux.sh @@ -0,0 +1,22 @@ +#!/bin/bash +x + +set -e + +# get number of CPU cores +if [ -f /proc/cpuinfo ]; then + CPUS=`grep processor /proc/cpuinfo | wc -l` +else + CPUS=1 +fi + +# Stackoverflow suggests jobs count of (CPU cores + 1) as a respctively good number! +JOBS=`expr $CPUS + 1` + +# run make for all configs +pushd "$(dirname "$0")/../../compiler/linux-debug-clang" +make -j$JOBS || exit 1 +popd + +pushd "$(dirname "$0")/../../compiler/linux-release-clang" +make -j$JOBS || exit 1 +popd |