From d4c6c1bd229b697c59f3a7084b7e1f8fc6097fc3 Mon Sep 17 00:00:00 2001 From: pelya Date: Fri, 21 Sep 2012 17:17:45 +0300 Subject: [PATCH] Fixed parallel build somehow broken in NDK r8b. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3f0d347c6..9e7b63fc3 100755 --- a/build.sh +++ b/build.sh @@ -42,7 +42,7 @@ if uname -s | grep -i "windows" > /dev/null ; then fi rm -r -f project/bin/* # New Android SDK introduced some lame-ass optimizations to the build system which we should take care about -cd project && env PATH=$NDKBUILDPATH nice -n19 ndk-build -j$NCPU && \ +cd project && env PATH=$NDKBUILDPATH BUILD_NUM_CPUS=$NCPU nice -n19 ndk-build -j$NCPU && \ { grep "CustomBuildScript=y" ../AndroidAppSettings.cfg > /dev/null && \ [ -`which ndk-build | xargs readlink -f | grep '/android-ndk-r[56789]'` != - ] && \ echo Stripping libapplication.so by hand \