mirror of
https://github.com/reactos/CMake.git
synced 2025-02-16 09:37:36 +00:00
Inline and remove AddFeatureFlags method
The method implementation is now only one call of another method, so inline it at call sites and remove it.
This commit is contained in:
parent
a8667467ea
commit
47990f9fef
@ -43,14 +43,6 @@ const char* cmCommonTargetGenerator::GetFeature(const std::string& feature)
|
||||
return this->GeneratorTarget->GetFeature(feature, this->ConfigName);
|
||||
}
|
||||
|
||||
void cmCommonTargetGenerator::AddFeatureFlags(std::string& flags,
|
||||
const std::string& lang)
|
||||
{
|
||||
// Add language-specific flags.
|
||||
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget, lang,
|
||||
this->ConfigName);
|
||||
}
|
||||
|
||||
void cmCommonTargetGenerator::AddModuleDefinitionFlag(
|
||||
cmLinkLineComputer* linkLineComputer, std::string& flags)
|
||||
{
|
||||
|
@ -28,9 +28,6 @@ public:
|
||||
std::string const& GetConfigName() const;
|
||||
|
||||
protected:
|
||||
// Add language feature flags.
|
||||
void AddFeatureFlags(std::string& flags, const std::string& lang);
|
||||
|
||||
// Feature query methods.
|
||||
const char* GetFeature(const std::string& feature);
|
||||
|
||||
|
@ -150,7 +150,8 @@ void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
|
||||
linkLanguage, *this->GeneratorTarget));
|
||||
|
||||
// Add language feature flags.
|
||||
this->AddFeatureFlags(flags, linkLanguage);
|
||||
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
|
||||
this->LocalGenerator->AddArchitectureFlags(flags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
@ -433,7 +434,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
||||
}
|
||||
|
||||
// Add language feature flags.
|
||||
this->AddFeatureFlags(flags, linkLanguage);
|
||||
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
|
||||
this->LocalGenerator->AddArchitectureFlags(flags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
|
@ -395,9 +395,10 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules(
|
||||
vars.LinkFlags = linkFlags.c_str();
|
||||
vars.TargetCompilePDB = targetOutPathCompilePDB.c_str();
|
||||
|
||||
// Add language feature flags.
|
||||
// Add language-specific flags.
|
||||
std::string langFlags;
|
||||
this->AddFeatureFlags(langFlags, linkLanguage);
|
||||
this->LocalGenerator->AddLanguageFlags(langFlags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
|
||||
vars.LanguageCompileFlags = langFlags.c_str();
|
||||
|
||||
@ -853,9 +854,10 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
}
|
||||
}
|
||||
|
||||
// Add language feature flags.
|
||||
// Add language-specific flags.
|
||||
std::string langFlags;
|
||||
this->AddFeatureFlags(langFlags, linkLanguage);
|
||||
this->LocalGenerator->AddLanguageFlags(langFlags, this->GeneratorTarget,
|
||||
linkLanguage, this->ConfigName);
|
||||
|
||||
this->LocalGenerator->AddArchitectureFlags(
|
||||
langFlags, this->GeneratorTarget, linkLanguage, this->ConfigName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user