| 2177 | } |
| 2178 | |
| 2179 | Json::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 | |
| 2203 | Json::Value Target::DumpArchive() |
| 2204 | { |
no test coverage detected