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

Method DumpLink

Source/cmFileAPICodemodel.cxx:2179–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2177}
2178
2179Json::Value Target::DumpLink()
2180{
2181 Json::Value link = Json::objectValue;
2182 std::string lang = this->GT->GetLinkerLanguage(this->Config);
2183 link["language"] = lang;
2184 {
2185 Json::Value commandFragments = this->DumpLinkCommandFragments();
2186 if (!commandFragments.empty()) {
2187 link["commandFragments"] = std::move(commandFragments);
2188 }
2189 }
2190 if (cmValue sysrootLink =
2191 this->GT->Makefile->GetDefinition("CMAKE_SYSROOT_LINK")) {
2192 link["sysroot"] = this->DumpSysroot(*sysrootLink);
2193 } else if (cmValue sysroot =
2194 this->GT->Makefile->GetDefinition("CMAKE_SYSROOT")) {
2195 link["sysroot"] = this->DumpSysroot(*sysroot);
2196 }
2197 if (this->GT->IsIPOEnabled(lang, this->Config)) {
2198 link["lto"] = true;
2199 }
2200 return link;
2201}
2202
2203Json::Value Target::DumpArchive()
2204{

Callers 1

DumpMethod · 0.95

Calls 7

DumpSysrootMethod · 0.95
moveFunction · 0.85
IsIPOEnabledMethod · 0.80
GetLinkerLanguageMethod · 0.45
emptyMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected