summarylogtreecommitdiffstats
path: root/0003-avbin-faster-build.patch
blob: e2ce3a82486fc60dc54ef40677a9a333b72d4c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naurp a/build.sh b/build.sh
--- a/build.sh	2019-06-09 18:44:46.000000000 +0000
+++ b/build.sh	2019-06-09 18:44:47.000000000 +0000
@@ -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")