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

Method WriteCompilerFlags

Source/cmGhsMultiTargetGenerator.cxx:243–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void cmGhsMultiTargetGenerator::WriteCompilerFlags(std::ostream& fout,
244 std::string const&,
245 std::string const& language)
246{
247 auto flagsByLangI = this->FlagsByLanguage.find(language);
248 if (flagsByLangI != this->FlagsByLanguage.end()) {
249 if (!flagsByLangI->second.empty()) {
250 std::vector<std::string> ghsCompFlags =
251 cmSystemTools::ParseArguments(flagsByLangI->second);
252 for (std::string const& f : ghsCompFlags) {
253 fout << " " << f << '\n';
254 }
255 }
256 }
257}
258
259void cmGhsMultiTargetGenerator::WriteCompilerDefinitions(
260 std::ostream& fout, std::string const& config, std::string const& language)

Callers 1

GenerateTargetMethod · 0.95

Calls 3

findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected