We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6490812 commit 3c5d5afCopy full SHA for 3c5d5af
build.sh
@@ -1,6 +1,11 @@
1
#!/bin/sh
2
+
3
. ./config.sh
-mkdir -p build
4
-cd build
+mkdir -p build && cd build
5
cmake -DCMAKE_CXX_COMPILER="${CXX_COMPILER}" -DUSER_CXX_FLAGS="${CXX_FLAGS}" -DUSE_COVERAGE="${USE_COVERAGE}" ..
6
-make -j$(nproc)
7
+if [ "$1" == "" ]; then
8
+ make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
9
+else
10
+ make -j$1
11
+fi
0 commit comments