From 5d604e1a5d5501e48a7128168f8daa33de985356 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 30 Mar 2019 17:47:04 +0100 Subject: [PATCH] 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). --- src/types.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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: -- 1.7.0.4