Commit f87f98015c

Andrew Kelley <superjoe30@gmail.com>
2017-10-16 01:04:19
16MB stack size when building with msvc
fixes crash when evaluating user code that hits the branch limit See #302
1 parent c837ae1
Changed files (1)
CMakeLists.txt
@@ -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()