summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Latocha2010-11-29 22:53:15 +0100
committerJohann Latocha2010-11-29 22:53:15 +0100
commit81ab281b08b61009ac5a4b83c24e555e9d4a067a (patch)
tree85045b500da8b6c1e68a6438136ea3bb812c63fb
parentDefect #779 (diff)
downloadpvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.tar.gz
pvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.tar.xz
pvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.zip
Better build script
-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