From 81ab281b08b61009ac5a4b83c24e555e9d4a067a Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Mon, 29 Nov 2010 22:53:15 +0100 Subject: Better build script --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522