aboutsummaryrefslogtreecommitdiff
path: root/PxShared/buildtools/steps/build_all_linux.sh
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
committerMarijn Tamis <[email protected]>2018-05-03 18:22:48 +0200
commitca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch)
treeb06b9eec03f34344ef8fc31aa147b2714d3962ee /PxShared/buildtools/steps/build_all_linux.sh
parentForced rename of platform folders in cmake dir. Git didn't pick this up before. (diff)
downloadnvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz
nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'PxShared/buildtools/steps/build_all_linux.sh')
-rw-r--r--PxShared/buildtools/steps/build_all_linux.sh22
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