From 5e9e8a8187d6b06f65a3f016a8c67b66a60855fa Mon Sep 17 00:00:00 2001 From: Arnav Gupta Date: Fri, 23 Nov 2012 10:47:44 -0700 Subject: [PATCH] mka: change how make is called in some environments make -j N xxx results in compiling target 'N' instead of 'xxx' make -jN xxx will always make 'xxx' with N number of threads Signed-off-by: Arnav Gupta Change-Id: I77f17c9286a5ef1d61163d8f978900fb4c24e2e7 --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index 5b2f36509..fcbe8d5cd 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -2046,7 +2046,7 @@ function mka() { make -j `sysctl hw.ncpu|cut -d" " -f2` "$@" ;; *) - schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@" + schedtool -B -n 1 -e ionice -n 1 make -j$(cat /proc/cpuinfo | grep "^processor" | wc -l) "$@" ;; esac } -- 2.11.0