Increase stack size for MSVC (fixes #8)
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 30 Mar 2019 16:47:04 +0000 (17:47 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 30 Mar 2019 16:47:04 +0000 (17:47 +0100)
Default stack size of 1 MB is insufficient for debug builds,
so increase it to 2 MB (same value as for OS X).

src/types.h

index b67812f..cd7c2ca 100644 (file)
@@ -49,6 +49,7 @@
 #pragma warning(disable: 4127) // Conditional expression is constant
 #pragma warning(disable: 4146) // Unary minus operator applied to unsigned type
 #pragma warning(disable: 4800) // Forcing value to bool 'true' or 'false'
+#pragma comment(linker, "/STACK:2000000") // Use 2MB stack size for MSVC
 #endif
 
 /// Predefined macros hell: