diff --git a/src/mono/CMakeLists.txt b/src/mono/CMakeLists.txt index 12d49392ee37f5..49a73b1b709c37 100644 --- a/src/mono/CMakeLists.txt +++ b/src/mono/CMakeLists.txt @@ -247,6 +247,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") add_compile_options(/W3) # set warning level 3 add_compile_options(/EHsc) # set exception handling behavior add_compile_options(/FC) # use full pathnames in diagnostics + add_link_options(/STACK:0x800000) # set stack size to 8MB (default is 1MB) if(CMAKE_BUILD_TYPE STREQUAL "Release") add_compile_options(/Oi) # enable intrinsics add_compile_options(/GF) # enable string pooling