diff options
-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 |