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

Unified Diff: pylib/gyp/generator/ninja.py

Issue 315343003: Add option for link concurrency. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Created 6 years, 6 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: pylib/gyp/generator/ninja.py
diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py
index e3fafb5d43ef61019dbb318d1c867a4aa93cc1ca..b64e7e1499ffba3bdf3b9cd18ddc61397b3b556f 100644
--- a/pylib/gyp/generator/ninja.py
+++ b/pylib/gyp/generator/ninja.py
@@ -1582,6 +1582,10 @@ def CommandWithWrapper(cmd, wrappers, prog):
def GetDefaultConcurrentLinks():
"""Returns a best-guess for a number of concurrent links."""
+ pool_size = os.getenv('GYP_LINK_CONCURRENCY', 0)
scottmg 2014/06/05 21:44:53 int(os.getenv(...)) would be better, otherwise se
mtklein 2014/06/05 21:59:39 Ah, I see. PTAL? This version works I think more
+ if pool_size != 0:
+ return pool_size
+
if sys.platform in ('win32', 'cygwin'):
import ctypes
« 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