[cmake-developers] [CMake 0013912]: Incorrect settings for Embarcadero compiler

Mantis Bug Tracker mantis at public.kitware.com
Wed Feb 13 10:31:58 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13912 
====================================================================== 
Reported By:                Mathäus Mendel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13912
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-02-13 10:31 EST
Last Modified:              2013-02-13 10:31 EST
====================================================================== 
Summary:                    Incorrect settings for Embarcadero compiler
Description: 
The configuration file used for Embarcadero compiler -
Windows-Embarcadero.cmake, at Modules/Platform folder - has incorrect settings.
The variable 'CMAKE_EXE_LINKER_FLAGS_INIT' is set as "${_tM} -lS:10000000
-lSc:10000000 ", overriding the default configuration for stack and heap
allocation/commit.

Steps to Reproduce: 
The issue can be reproduced using a binary that allocates a lot of memory in a
short time span, running on a system with memory pagination disabled. The memory
commit size will increase and the system will hang or become unstable.

Additional Information: 
The ideal configuration to be passed to the linker would be:

set (CMAKE_EXE_LINKER_FLAGS_INIT "${_tM} -lS:1048576 -lSc:4098 -lH:1048576
-lHc:8192")

It will force the linker to use the default settings for stack and heap memory
allocation/usage.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-13 10:31 Mathäus Mendel New Issue                                    
======================================================================




More information about the cmake-developers mailing list