make.sh: auto-detect number of CPU cores

This commit is contained in:
Thomas Kolb 2019-09-25 23:45:41 +02:00
parent 1a4b6ec075
commit 6bfcd3d142

View file

@ -6,7 +6,7 @@ mkdir -p build
cd build
#cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
make -j$(ls -d1 /sys/devices/system/cpu/cpu[0-9]* | wc -l)
if [ "$1" == "install" ]; then
sudo make install