| 2201 | } |
| 2202 | |
| 2203 | Json::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 | |
| 2220 | Json::Value Target::DumpLinkCommandFragments() |
| 2221 | { |
no test coverage detected