diff options
author | Johann Latocha | 2010-11-29 22:53:15 +0100 |
---|---|---|
committer | Johann Latocha | 2010-11-29 22:53:15 +0100 |
commit | 81ab281b08b61009ac5a4b83c24e555e9d4a067a (patch) | |
tree | 85045b500da8b6c1e68a6438136ea3bb812c63fb | |
parent | Defect #779 (diff) | |
download | pvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.tar.gz pvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.tar.xz pvs-81ab281b08b61009ac5a4b83c24e555e9d4a067a.zip |
Better build script
-rwxr-xr-x | build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |