MCPcopy Create free account
hub / github.com/Kitware/CMake / GetLinkCommand

Method GetLinkCommand

Source/cmFastbuildNormalTargetGenerator.cxx:729–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729std::string cmFastbuildNormalTargetGenerator::GetLinkCommand() const
730{
731 std::string const& linkLanguage = GeneratorTarget->GetLinkerLanguage(Config);
732 std::string linkCmdVar =
733 GeneratorTarget->GetCreateRuleVariable(linkLanguage, Config);
734 std::string res = this->Makefile->GetSafeDefinition(linkCmdVar);
735 if (res.empty() &&
736 this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY) {
737 linkCmdVar = linkCmdVar =
738 cmStrCat("CMAKE_", linkLanguage, "_ARCHIVE_CREATE");
739 res = this->Makefile->GetSafeDefinition(linkCmdVar);
740 }
741 LogMessage("Link rule: " + cmStrCat(linkCmdVar, " = ", res));
742 return res;
743}
744
745void cmFastbuildNormalTargetGenerator::AddCompilerLaunchersForLanguages()
746{

Callers

nothing calls this directly

Calls 5

GetCreateRuleVariableMethod · 0.80
cmStrCatFunction · 0.70
GetLinkerLanguageMethod · 0.45
emptyMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected