CMake: set stack size to 2MB for MSVC builds
authorHans Wennborg <hans@hanshq.net>
Thu, 17 Oct 2013 17:49:57 +0000 (17:49 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 17 Oct 2013 17:49:57 +0000 (17:49 +0000)
commitacc1f8b20f11d726ae013cf767079eb06dd0d935
treed2adea402f3f03b82bc522b57c602faa3ca60baf
parent20a7ec92475e6209892dd2201b4bbf852d6fa122
CMake: set stack size to 2MB for MSVC builds

Compiling under Visual C++ 2012 with the default stack size of 1MB, the stack
overflows at a depth of 216 template instantiations, well before the 256
default limit. This patch modifies the default MSVC stack size to 2MB.

Patch by Yaron Keren!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192904 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake