From: Fabian Fichter Date: Sat, 30 Mar 2019 16:47:04 +0000 (+0100) Subject: Increase stack size for MSVC (fixes #8) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5d604e1a5d5501e48a7128168f8daa33de985356;p=fairystockfish.git Increase stack size for MSVC (fixes #8) Default stack size of 1 MB is insufficient for debug builds, so increase it to 2 MB (same value as for OS X). --- diff --git a/src/types.h b/src/types.h index b67812f..cd7c2ca 100644 --- a/src/types.h +++ b/src/types.h @@ -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: