diff options
author | David Cole <david.cole@kitware.com> | 2012-11-23 16:41:58 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-11-23 16:41:58 (GMT) |
commit | 51af1da3d21b95540888d585fccdaa8d68d1fdd8 (patch) | |
tree | fe93876ae7b7027c8e3b531b7a56df3ba6cc3e35 /Modules/Platform/Windows-Intel.cmake | |
parent | 0499f93716602ba906e292f279e215f4a8e92a01 (diff) | |
download | CMake-51af1da3d21b95540888d585fccdaa8d68d1fdd8.zip CMake-51af1da3d21b95540888d585fccdaa8d68d1fdd8.tar.gz CMake-51af1da3d21b95540888d585fccdaa8d68d1fdd8.tar.bz2 |
CMake: Remove "/STACK:10000000" from default linker flags (#12437)
Modern apps that use multiple threads do NOT want 10 Megabytes of RAM
per thread being used for each thread's stack... Just leave off the
/STACK: argument, and let the compiler use a reasonable default value
for the stack size.
If existing single-threaded apps require the /STACK: argument because
they do need a very large stack size, they can add the flag in their
own CMakeLists files.
Diffstat (limited to 'Modules/Platform/Windows-Intel.cmake')
-rw-r--r-- | Modules/Platform/Windows-Intel.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-Intel.cmake b/Modules/Platform/Windows-Intel.cmake index 58da8c5..8a9d630 100644 --- a/Modules/Platform/Windows-Intel.cmake +++ b/Modules/Platform/Windows-Intel.cmake @@ -50,7 +50,7 @@ elseif(MSVC_CXX_ARCHITECTURE_ID) elseif(MSVC_Fortran_ARCHITECTURE_ID) set(_MACHINE_ARCH_FLAG "/machine:${MSVC_Fortran_ARCHITECTURE_ID}") endif() -set (CMAKE_EXE_LINKER_FLAGS_INIT "/STACK:10000000 /INCREMENTAL:YES ${_MACHINE_ARCH_FLAG}") +set (CMAKE_EXE_LINKER_FLAGS_INIT "/INCREMENTAL:YES ${_MACHINE_ARCH_FLAG}") set (CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "/debug") set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "/debug") |