Jonathan "Duke" Leto
5 years ago
3 changed files with 13 additions and 5 deletions
@ -1,8 +1,18 @@ |
|||
#!/bin/bash |
|||
# Copyright 2019 The Hush Developers |
|||
|
|||
JOBS=$(nproc) |
|||
UNAME=$(uname) |
|||
|
|||
if [ "$UNAME" == "Linux" ] ; then |
|||
JOBS=$(nproc) |
|||
elif [ "$UNAME" == "FreeBSD" ] ; then |
|||
JOBS=$(nproc) |
|||
elif [ "$UNAME" == "Darwin" ] ; then |
|||
JOBS=$(sysctl -n hw.ncpu) |
|||
else |
|||
JOBS=1 |
|||
fi |
|||
|
|||
qmake silentdragon.pro CONFIG+=debug |
|||
echo "Compiling with $JOBS threads..." |
|||
make -j$JOBS |
|||
|
|||
qmake silentdragon.pro CONFIG+=debug; make -j$JOBS |
|||
|
Loading…
Reference in new issue