| 159 | this->GG = this->Target->GetLocalGenerator()->GetGlobalGenerator(); |
| 160 | } |
| 161 | void Consider(std::string const& lang) |
| 162 | { |
| 163 | int preference = this->GG->GetLinkerPreference(lang); |
| 164 | if (preference > this->Preference) { |
| 165 | this->Preference = preference; |
| 166 | this->Preferred.clear(); |
| 167 | } |
| 168 | if (preference == this->Preference) { |
| 169 | this->Preferred.insert(lang); |
| 170 | } |
| 171 | } |
| 172 | std::string Choose() |
| 173 | { |
| 174 | if (this->Preferred.empty()) { |
no test coverage detected