summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 6b76686..4930bdc 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+
+NCORES=$(grep -c "^processor" /proc/cpuinfo 2>/dev/null)
+
mkdir -p build
cd build/
cmake ..
-make -s -j2 \ No newline at end of file
+make -s -j $NCORES