expand-stack flag in windows or cygwin platform
@@ -99,6 +99,8 @@ class CPlusPlusLanguage(Language):
def _list_environments(self) -> List[CPlusPlusLanguageEnvironment]:
default_CXXFLAGS = ['--std=c++17', '-O2', '-Wall', '-g']
+ if platform.system() == 'Windows' or 'CYGWIN' in platform.system():
+ default_CXXFLAGS.append('-Wl,-stack,0x10000000')
if platform.system() == 'Darwin':
default_CXXFLAGS.append('-Wl,-stack_size,0x10000000')
if platform.uname().system == 'Linux' and 'Microsoft' in platform.uname().release:
