| Index: pylib/gyp/generator/ninja.py
|
| diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py
|
| index c2437822a7f85b1aab6adeb899d29279d191fa0b..51c288b2164ff2e2b7aa337302ee946764b17be2 100644
|
| --- a/pylib/gyp/generator/ninja.py
|
| +++ b/pylib/gyp/generator/ninja.py
|
| @@ -1696,7 +1696,9 @@ def GetDefaultConcurrentLinks():
|
| stat.dwLength = ctypes.sizeof(stat)
|
| ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
|
|
|
| - mem_limit = max(1, stat.ullTotalPhys / (4 * (2 ** 30))) # total / 4GB
|
| + # VS 2015 uses 20% more working set than VS 2013 and can consume all RAM
|
| + # on a 64 GB machine.
|
| + mem_limit = max(1, stat.ullTotalPhys / (5 * (2 ** 30))) # total / 5GB
|
| hard_cap = max(1, int(os.getenv('GYP_LINK_CONCURRENCY_MAX', 2**32)))
|
| return min(mem_limit, hard_cap)
|
| elif sys.platform.startswith('linux'):
|
|
|