blob: 71a2b7615ba39dfd47c80837e767552354cffef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- a/build.sh
+++ b/build.sh
@@ -147,7 +147,7 @@ die_usage() {
echo
echo "Options"
echo " --clean Don't build, just clean up all generated files and directories."
- echo " --fast Use 'make -j9' when compiling"
+ echo " --fast Use 'make -j<threads+1>' when compiling"
echo " --help Display this help text."
echo " --rebuild Don't reconfigure, just run make again."
echo
@@ -165,7 +165,7 @@ die_usage() {
for arg in $* ; do
case $arg in
"--fast")
- FAST="-j9" ;;
+ FAST="-j$(($(nproc)+1))" ;;
"--help")
die_usage ;;
"--rebuild")
|