MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / compilerName

Function compilerName

Tools/SC-build.cpp:175–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static constexpr StringView compilerName(const Parameters& parameters)
176{
177 switch (parameters.toolchain.family)
178 {
179 case Toolchain::Clang: return "clang";
180 case Toolchain::FilC: return "filc";
181 case Toolchain::GCC: return "gcc";
182 case Toolchain::MSVC: return "msvc";
183 case Toolchain::ClangCL: return "clang-cl";
184 case Toolchain::LLVMMingw: return "llvm-mingw";
185 case Toolchain::CustomDriver: return "custom-driver";
186 case Toolchain::HostDefault:
187 if (parameters.platform == Platform::Windows)
188 {
189 return "msvc";
190 }
191 if (parameters.generator == Generator::XCode or parameters.platform == Platform::Apple)
192 {
193 return "clang";
194 }
195 return "gcc";
196 }
197 Assert::unreachable();
198}
199
200static Result expandBuildDirectoryVariables(StringView source, const Parameters& parameters,
201 const Configuration& configuration, String& output)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected