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 |