| 192 | } |
| 193 | |
| 194 | void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const& config, |
| 195 | std::string const& language) |
| 196 | { |
| 197 | auto i = this->FlagsByLanguage.find(language); |
| 198 | if (i == this->FlagsByLanguage.end()) { |
| 199 | std::string flags; |
| 200 | this->LocalGenerator->AddLanguageFlags( |
| 201 | flags, this->GeneratorTarget, cmBuildStep::Compile, language, config); |
| 202 | this->LocalGenerator->AddFeatureFlags(flags, this->GeneratorTarget, |
| 203 | language, config); |
| 204 | this->LocalGenerator->AddVisibilityPresetFlags( |
| 205 | flags, this->GeneratorTarget, language); |
| 206 | this->LocalGenerator->AddColorDiagnosticsFlags(flags, language); |
| 207 | |
| 208 | // Append old-style preprocessor definition flags. |
| 209 | if (this->Makefile->GetDefineFlags() != " ") { |
| 210 | this->LocalGenerator->AppendFlags(flags, |
| 211 | this->Makefile->GetDefineFlags()); |
| 212 | } |
| 213 | |
| 214 | // Add target-specific flags. |
| 215 | this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget, |
| 216 | language, config); |
| 217 | |
| 218 | std::map<std::string, std::string>::value_type entry(language, flags); |
| 219 | i = this->FlagsByLanguage.insert(entry).first; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | std::string cmGhsMultiTargetGenerator::GetDefines(std::string const& language, |
| 224 | std::string const& config) |
no test coverage detected