Index: build/android/gyp/dex.py |
diff --git a/build/android/gyp/dex.py b/build/android/gyp/dex.py |
index 3b4141f2f1418a47ff345d496ee54aaf86ae7674..898ee8f66f959e62135db123224fdb83db2ddaae 100755 |
--- a/build/android/gyp/dex.py |
+++ b/build/android/gyp/dex.py |
@@ -48,7 +48,10 @@ def DoMultiDex(options, paths): |
def DoDex(options, paths, dex_args=None): |
dx_binary = os.path.join(options.android_sdk_tools, 'dx') |
# See http://crbug.com/272064 for context on --force-jumbo. |
- dex_cmd = [dx_binary, '--dex', '--force-jumbo', '--output', options.dex_path] |
+ # See https://github.com/android/platform_dalvik/commit/dd140a22d for |
+ # --num-threads. |
+ dex_cmd = [dx_binary, '--num-threads=8', '--dex', '--force-jumbo', |
+ '--output', options.dex_path] |
if options.no_locals != '0': |
dex_cmd.append('--no-locals') |