View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014708CMakeCMakepublic2014-01-18 07:212014-06-02 08:38
ReporterAmelek 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformWindowsOS7OS Version64
Product VersionCMake 2.8.12.1 
Target VersionFixed in Version 
Summary0014708: Release configuration has LTCG disabled
DescriptionI'm CMake user and I noticed that few project that use CMake (including Ogre and CEGUI) do not have Link time code generation enabled in Release configuration. This naturally renders such solutions useless performance-wise and fixing this manually is tedious.

It seem that bug is in CMake as there is no code in the CMakeList.txt that would explicitly disable this behavior.

On network there seem to be some workarounds (put flag manually in some magic variable), but this option should be enabled by default. There is no penalty for having it and resulting code is much faster in most cases.
Steps To ReproduceConfigure Ogre, notice that LTCG is disabled in Release configuration
Additional InformationLTCG should be enabled in Release configuration
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0034965)
Brad King (manager)
2014-01-20 09:03

The proper solution for projects that want particular optimizations is to add code to their CMakeLists.txt files to add the flags. The upstream-default flags are intentionally minimal.
(0036087)
Robert Maynard (manager)
2014-06-02 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-01-18 07:21 Amelek New Issue
2014-01-20 09:03 Brad King Note Added: 0034965
2014-01-20 09:03 Brad King Status new => resolved
2014-01-20 09:03 Brad King Resolution open => won't fix
2014-06-02 08:38 Robert Maynard Note Added: 0036087
2014-06-02 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team