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

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: empty broken 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..4b74e179d59d32dbf0626942e00154e0a7ee6c3d 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')
scottmg 2014/06/05 22:21:45 i think "int(os.getenv('GYP_LINK_CONCURRENCY', 0))
mtklein 2014/06/05 22:24:51 No problem! Do you mean like PS 5? I was avoidin
+ if pool_size and int(pool_size):
+ return int(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