[vlc-commits] build.sh: Build contribs from source with multiple cores as well

David Fuhrmann git at videolan.org
Sun Jul 2 16:31:21 CEST 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul  2 16:16:54 2017 +0200| [4b785dfdea25754d3630bfe105f9ebd2e73ad3ce] | committer: David Fuhrmann

build.sh: Build contribs from source with multiple cores as well

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b785dfdea25754d3630bfe105f9ebd2e73ad3ce
---

 extras/package/macosx/build.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index f8cdfc7df4..6dea85a9ce 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -115,6 +115,8 @@ fi
 make > $out
 spopd
 
+core_count=`sysctl -n machdep.cpu.core_count`
+let jobs=$core_count+1
 
 #
 # vlc/contribs
@@ -129,7 +131,7 @@ if [ "$REBUILD" = "yes" ]; then
 fi
 if [ "$CONTRIBFROMSOURCE" = "yes" ]; then
     make fetch
-    make
+    make -j$jobs
 else
 if [ ! -e "../$TRIPLET" ]; then
     make prebuilt > $out
@@ -168,8 +170,6 @@ fi
 # make
 #
 
-core_count=`sysctl -n machdep.cpu.core_count`
-let jobs=$core_count+1
 
 if [ "$REBUILD" = "yes" ]; then
     info "Running make clean"



More information about the vlc-commits mailing list