mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
Merge topic 'ipo-xcode'
7e75568b Xcode: Support IPO (LTO)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !785
This commit is contained in:
@@ -1683,8 +1683,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
|
||||
return;
|
||||
}
|
||||
|
||||
// Check IPO related warning/error.
|
||||
gtgt->IsIPOEnabled(configName);
|
||||
if (gtgt->IsIPOEnabled(configName)) {
|
||||
const char* ltoValue =
|
||||
this->CurrentMakefile->IsOn("_CMAKE_LTO_THIN") ? "YES_THIN" : "YES";
|
||||
buildSettings->AddAttribute("LLVM_LTO", this->CreateString(ltoValue));
|
||||
}
|
||||
|
||||
// Add define flags
|
||||
this->CurrentLocalGenerator->AppendFlags(
|
||||
|
||||
@@ -90,6 +90,8 @@ public:
|
||||
|
||||
bool HasKnownObjectFileLocation(std::string* reason) const CM_OVERRIDE;
|
||||
|
||||
bool IsIPOSupported() const CM_OVERRIDE { return true; }
|
||||
|
||||
bool UseEffectivePlatformName(cmMakefile* mf) const CM_OVERRIDE;
|
||||
|
||||
bool ShouldStripResourcePath(cmMakefile*) const CM_OVERRIDE;
|
||||
|
||||
Reference in New Issue
Block a user