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

Method DumpArchive

Source/cmFileAPICodemodel.cxx:2203–2218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203Json::Value Target::DumpArchive()
2204{
2205 Json::Value archive = Json::objectValue;
2206 {
2207 // The "link" fragments not relevant to static libraries are empty.
2208 Json::Value commandFragments = this->DumpLinkCommandFragments();
2209 if (!commandFragments.empty()) {
2210 archive["commandFragments"] = std::move(commandFragments);
2211 }
2212 }
2213 std::string lang = this->GT->GetLinkerLanguage(this->Config);
2214 if (this->GT->IsIPOEnabled(lang, this->Config)) {
2215 archive["lto"] = true;
2216 }
2217 return archive;
2218}
2219
2220Json::Value Target::DumpLinkCommandFragments()
2221{

Callers 1

DumpMethod · 0.95

Calls 5

moveFunction · 0.85
IsIPOEnabledMethod · 0.80
emptyMethod · 0.45
GetLinkerLanguageMethod · 0.45

Tested by

no test coverage detected