summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2017-04-28 14:13:56 (GMT)
committerRuslan Baratov <ruslan_baratov@yahoo.com>2017-04-28 14:13:56 (GMT)
commit7d057b2738e229192ae5afe71d50354681813235 (patch)
treebebcaf0fcca709a89a4d6e9dde390ef7003cef38 /Source/cmMakefileLibraryTargetGenerator.cxx
parentd828d0eb084cf094119d2b47dae0053267aba138 (diff)
downloadCMake-7d057b2738e229192ae5afe71d50354681813235.zip
CMake-7d057b2738e229192ae5afe71d50354681813235.tar.gz
CMake-7d057b2738e229192ae5afe71d50354681813235.tar.bz2
Clang IPO (LTO) support
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index ec01208..5ee9f45 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -494,6 +494,8 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
// Create set of linking flags.
std::string linkFlags;
this->LocalGenerator->AppendFlags(linkFlags, extraFlags);
+ this->LocalGenerator->AppendIPOLinkerFlags(linkFlags, this->GeneratorTarget,
+ this->ConfigName, linkLanguage);
// Add OSX version flags, if any.
if (this->GeneratorTarget->GetType() == cmStateEnums::SHARED_LIBRARY ||