diff options
author | Brad King <brad.king@kitware.com> | 2009-10-02 17:52:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-02 17:52:13 (GMT) |
commit | c513962701dd6fbab8113ae104deb0eaa76a16e1 (patch) | |
tree | 2dd039d951e1b24c2d8318b275c7033e22f9a851 /Source/cmMakefileTargetGenerator.cxx | |
parent | 1e482435912f44e05b5e67f19b1bc14ff58a3169 (diff) | |
download | CMake-c513962701dd6fbab8113ae104deb0eaa76a16e1.zip CMake-c513962701dd6fbab8113ae104deb0eaa76a16e1.tar.gz CMake-c513962701dd6fbab8113ae104deb0eaa76a16e1.tar.bz2 |
Create INTERPROCEDURAL_OPTIMIZATION build feature
This commit creates target and directory properties to enable the Intel
interprocedural optimization support on Linux. Enabling it adds the
compiler option '-ipo' and uses 'xiar' to create archives.
See issue #9615.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index e353c3d..7ccccee 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1780,4 +1780,9 @@ void cmMakefileTargetGenerator::AddFeatureFlags( { // Add language-specific flags. this->LocalGenerator->AddLanguageFlags(flags, lang, this->ConfigName); + + if(this->GetFeatureAsBool("INTERPROCEDURAL_OPTIMIZATION")) + { + this->LocalGenerator->AppendFeatureOptions(flags, lang, "IPO"); + } } |