Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tools-webrtc/ios/build_ios_libs.py

Issue 2691393003: Improving parallelism when building with goma (Closed)
Patch Set: Fixing typo 'j' -> '-j' Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools-webrtc/ios/build_ios_libs.py
diff --git a/tools-webrtc/ios/build_ios_libs.py b/tools-webrtc/ios/build_ios_libs.py
index a4ace45b7e795e6b92eab1d53af112d7da977a56..79b19a0ca75e71de3991cf2c443e5bc0820333be 100755
--- a/tools-webrtc/ios/build_ios_libs.py
+++ b/tools-webrtc/ios/build_ios_libs.py
@@ -116,11 +116,15 @@ def BuildWebRTC(output_dir, target_arch, flavor, build_type,
raise ValueError('Build type "%s" is not supported.' % build_type)
logging.info('Building WebRTC with args: %s', ' '.join(gn_args))
+
cmd = ['gn', 'gen', output_dir,
'--args=' + ' '.join(gn_args + extra_gn_args)]
_RunCommand(cmd)
logging.info('Building target: %s', gn_target_name)
+
cmd = ['ninja', '-C', output_dir, gn_target_name]
+ if use_goma:
+ cmd.extend(['-j', '200'])
_RunCommand(cmd)
# Strip debug symbols to reduce size.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698