summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-18 16:11:55 +0100
committerGitHub <noreply@github.com>2020-03-18 16:11:55 +0100
commit0d907a6320f880dcfaa996c28b88c6f5e0677202 (patch)
tree9c4ce36934be0bb892771e969b516d8cb5e55c9b
parent194d2ccb723e69b081594b6b35c1e355021b79e5 (diff)
parent29f8530afedb56ebfca1248fbd4a9010bdd23308 (diff)
Merge pull request #37115 from RandomShaper/imvu/windows_stack_size
Make stack size on Windows match Linux and MacOS
-rw-r--r--platform/windows/detect.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 3ab0d38a6a..cc859c0339 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -1,6 +1,9 @@
import methods
import os
+# To match other platforms
+STACK_SIZE = 8388608
+
def is_active():
return True
@@ -259,6 +262,8 @@ def configure_msvc(env, manual_msvc_config):
env['BUILDERS']['ProgramOriginal'] = env['BUILDERS']['Program']
env['BUILDERS']['Program'] = methods.precious_program
+ env.AppendUnique(LINKFLAGS=['/STACK:' + str(STACK_SIZE)])
+
def configure_mingw(env):
# Workaround for MinGW. See:
# http://www.scons.org/wiki/LongCmdLinesOnWin32
@@ -351,6 +356,7 @@ def configure_mingw(env):
env.Append(CCFLAGS=['-flto'])
env.Append(LINKFLAGS=['-flto'])
+ env.Append(LINKFLAGS=['-Wl,--stack,' + str(STACK_SIZE)])
## Compile flags