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

Function CanUseCompilerLauncher

Source/cmGeneratorTarget.cxx:2117–2123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2115}
2116
2117bool CanUseCompilerLauncher(std::string const& lang)
2118{
2119 // Also found in `cmCommonTargetGenerator::GetCompilerLauncher`.
2120 return lang == "C"_s || lang == "CXX"_s || lang == "Fortran"_s ||
2121 lang == "CUDA"_s || lang == "HIP"_s || lang == "ISPC"_s ||
2122 lang == "OBJC"_s || lang == "OBJCXX"_s;
2123}
2124
2125// FIXME: return a vector of `cm::string_view` instead to avoid lots of tiny
2126// allocations.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…