Implement interprocedural optimization for GNU compilers

Honor the `INTERPROCEDURAL_OPTIMIZATION` target property for GNU
compilers by activating their link-time-optimization (LTO) flags.
This commit is contained in:
Ruslan Baratov
2017-03-28 14:47:42 +08:00
committed by Brad King
parent 1588a577d1
commit dfa8263f4b
8 changed files with 103 additions and 14 deletions
+3
View File
@@ -309,6 +309,9 @@ public:
void GetAppleArchs(const std::string& config,
std::vector<std::string>& archVec) const;
std::string GetFeatureSpecificLinkRuleVariable(
std::string const& var, std::string const& config) const;
/** Return the rule variable used to create this type of target. */
std::string GetCreateRuleVariable(std::string const& lang,
std::string const& config) const;