Skip to content

Commit f87f980

Browse files
committed
16MB stack size when building with msvc
fixes crash when evaluating user code that hits the branch limit See #302
1 parent c837ae1 commit f87f980

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ endif()
375375
set(EXE_LDFLAGS " ")
376376
if(MINGW)
377377
set(EXE_LDFLAGS "-static -static-libgcc -static-libstdc++")
378+
elseif(MSVC)
379+
set(EXE_LDFLAGS "/STACK:16777216")
378380
else()
379381
set(EXE_LDFLAGS " ")
380382
endif()

0 commit comments

Comments
 (0)