diff options
author | Brad King <brad.king@kitware.com> | 2013-02-13 18:19:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-13 18:35:25 (GMT) |
commit | 188b0e9e37d6f47b65c60d81a2b07206b3d5488b (patch) | |
tree | 13f2b7a766f40c4cf9a764d6f76bd56e6532e09e /Modules/Platform/Windows-Embarcadero.cmake | |
parent | 132450066945d2c7244205df662f3137edfad5bc (diff) | |
download | CMake-188b0e9e37d6f47b65c60d81a2b07206b3d5488b.zip CMake-188b0e9e37d6f47b65c60d81a2b07206b3d5488b.tar.gz CMake-188b0e9e37d6f47b65c60d81a2b07206b3d5488b.tar.bz2 |
Embarcadero: Fix default link stack/heap flags (#13912)
Since commit c70beb4b (change the default borland stack size, 2003-05-05),
commit 1b572eb9 (remove -H flags, 2003-05-08), and commit 2d411398 (Stack size
in generated programs should be 10 meg, 2003-06-12) CMake adds link flags to
select a 10MB stack. At the time this was for consistency with our behavior on
MS, but that was recently removed by commit 51af1da3 (Remove "/STACK:10000000"
from default linker flags, 2012-11-23).
Change our Embarcadero link flags to select the default stack and heap settings
according to the compiler documentation. This is more reliable than leaving
the flags out completely as it has been reported that the linker does not
always use its documented defaults.
Suggested-by: Mathäus Mendel <contato@mathausmendel.com>
Diffstat (limited to 'Modules/Platform/Windows-Embarcadero.cmake')
-rw-r--r-- | Modules/Platform/Windows-Embarcadero.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-Embarcadero.cmake b/Modules/Platform/Windows-Embarcadero.cmake index 1662ac9..307230e 100644 --- a/Modules/Platform/Windows-Embarcadero.cmake +++ b/Modules/Platform/Windows-Embarcadero.cmake @@ -64,7 +64,7 @@ set(CMAKE_CREATE_CONSOLE_EXE "${_tC}" ) set (CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel.") -set (CMAKE_EXE_LINKER_FLAGS_INIT "${_tM} -lS:10000000 -lSc:10000000 ") +set (CMAKE_EXE_LINKER_FLAGS_INIT "${_tM} -lS:1048576 -lSc:4098 -lH:1048576 -lHc:8192 ") set (CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "-v") set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "-v") set (CMAKE_SHARED_LINKER_FLAGS_INIT ${CMAKE_EXE_LINKER_FLAGS_INIT}) |