make.sh: auto-detect number of CPU cores
This commit is contained in:
parent
1a4b6ec075
commit
6bfcd3d142
|
@ -6,7 +6,7 @@ mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
#cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
#cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
make -j4
|
make -j$(ls -d1 /sys/devices/system/cpu/cpu[0-9]* | wc -l)
|
||||||
|
|
||||||
if [ "$1" == "install" ]; then
|
if [ "$1" == "install" ]; then
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
Loading…
Reference in a new issue