瀏覽代碼

build scripts: Don't enforce -j1 for verbose

Instead, explicitely set MAKE_JOBS environment variable to 1 if you want
this behavior.
Hugo Beauzée-Luyssen 7 年之前
父節點
當前提交
13ccd75237
共有 2 個文件被更改,包括 8 次插入6 次删除
  1. 4 3
      buildMobileVLCKit.sh
  2. 4 3
      buildVLCKit.sh

+ 4 - 3
buildMobileVLCKit.sh

@@ -24,8 +24,10 @@ FARCH="all"
 
 TESTEDHASH=4d3db1203
 
-CORE_COUNT=`sysctl -n machdep.cpu.core_count`
-let MAKE_JOBS=$CORE_COUNT+1
+if [ -z "$MAKE_JOBS" ]; then
+    CORE_COUNT=`sysctl -n machdep.cpu.core_count`
+    let MAKE_JOBS=$CORE_COUNT+1
+fi
 
 usage()
 {
@@ -57,7 +59,6 @@ do
              ;;
          v)
              VERBOSE=yes
-             MAKE_JOBS=1
              ;;
          s)
              BUILD_DEVICE=no

+ 4 - 3
buildVLCKit.sh

@@ -13,8 +13,10 @@ SKIPLIBVLCCOMPILATION=no
 SCARY=yes
 DEBUG="no"
 
-CORE_COUNT=`sysctl -n machdep.cpu.core_count`
-let MAKE_JOBS=$CORE_COUNT+1
+if [ -z "$MAKE_JOBS" ]; then
+    CORE_COUNT=`sysctl -n machdep.cpu.core_count`
+    let MAKE_JOBS=$CORE_COUNT+1
+fi
 
 usage()
 {
@@ -80,7 +82,6 @@ do
              ;;
          v)
              VERBOSE=yes
-             MAKE_JOBS=1
              ;;
          d)  CONFIGURATION="Debug"
              DEBUG="yes"