Skip to content

Commit

Permalink
16MB stack size when building with msvc
Browse files Browse the repository at this point in the history
fixes crash when evaluating user code that hits the branch limit

See #302
  • Loading branch information
andrewrk committed Oct 15, 2017
1 parent c837ae1 commit f87f980
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -375,6 +375,8 @@ endif()
set(EXE_LDFLAGS " ")
if(MINGW)
set(EXE_LDFLAGS "-static -static-libgcc -static-libstdc++")
elseif(MSVC)
set(EXE_LDFLAGS "/STACK:16777216")
else()
set(EXE_LDFLAGS " ")
endif()
Expand Down

0 comments on commit f87f980

Please sign in to comment.