[Android] Check for the number of jobs to run on OS X as well

Martin Storsjö git at videolan.org
Tue Apr 2 14:28:42 CEST 2013


vlc-ports/android | branch: master | Martin Storsjö <martin at martin.st> | Tue Apr  2 14:25:53 2013 +0200| [f0f8fd35880babbac3e27974267cdb14fa31b45c] | committer: Rafaël Carré

Check for the number of jobs to run on OS X as well

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f0f8fd35880babbac3e27974267cdb14fa31b45c
---

 compile.sh |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compile.sh b/compile.sh
index 4a86445..d9cf3d7 100755
--- a/compile.sh
+++ b/compile.sh
@@ -182,6 +182,9 @@ MAKEFLAGS=
 if which nproc >/dev/null
 then
 MAKEFLAGS=-j`nproc`
+elif which sysctl >/dev/null
+then
+MAKEFLAGS=-j`sysctl -n machdep.cpu.thread_count`
 fi
 
 echo "EXTRA_CFLAGS= -g ${EXTRA_CFLAGS}" >> config.mak



More information about the Android mailing list