projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ad8ccb0
)
Increase stack size for MSVC (fixes #8)
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 30 Mar 2019 16:47:04 +0000 (17:47 +0100)
committer
Fabian 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
patch
|
blob
|
history
diff --git
a/src/types.h
b/src/types.h
index
b67812f
..
cd7c2ca
100644
(file)
--- 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: