diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 19:04:19 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 19:04:19 -0400 |
| commit | f87f98015ca0def0faa717748ace151aeff39c40 (patch) | |
| tree | 4f4a4b057e33fb75a95745a38d35eab79a24cb05 /CMakeLists.txt | |
| parent | c837ae17078f26cffc2e3d5c45324587c584d7b0 (diff) | |
| download | zig-f87f98015ca0def0faa717748ace151aeff39c40.tar.gz zig-f87f98015ca0def0faa717748ace151aeff39c40.zip | |
16MB stack size when building with msvc
fixes crash when evaluating user code that hits the branch limit
See #302
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 26489b52c2..f27404a530 100644 --- a/CMakeLists.txt +++ b/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() |
