chiark / gitweb /
Always run ndk-build with -j1
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 09:09:12 +0000 (10:09 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 09:09:12 +0000 (10:09 +0100)
fdroidserver/build.py

index 7e30acfaf4a75a25125a35ad44b66dcba8ad301b..a908bb36eb8aa6ed71ea7f682caf9733dbe79f47 100644 (file)
@@ -486,9 +486,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
         jni_components = thisbuild.get('buildjni')
         if jni_components == ['yes']:
             jni_components = ['']
-        jobs = multiprocessing.cpu_count()
-        ndkbuild = os.path.join(config['ndk_path'], "ndk-build")
-        cmd = [ndkbuild, "-j"+str(jobs)]
+        cmd = [ os.path.join(config['ndk_path'], "ndk-build", "-j1" ]
         for d in jni_components:
             logging.info("Building native code in '%s'" % d)
             manifest = root_dir + '/' + d + '/AndroidManifest.xml'