MCPcopy Create free account
hub / github.com/RenderKit/embree / getCompilerName

Function getCompilerName

common/sys/sysinfo.cpp:63–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 std::string getCompilerName()
64 {
65#if defined(__INTEL_COMPILER)
66 int icc_mayor = __INTEL_COMPILER / 100 % 100;
67 int icc_minor = __INTEL_COMPILER % 100;
68 std::string version = "Intel Compiler ";
69 version += toString(icc_mayor);
70 version += "." + toString(icc_minor);
71#if defined(__INTEL_COMPILER_UPDATE)
72 version += "." + toString(__INTEL_COMPILER_UPDATE);
73#endif
74 return version;
75#elif defined(__clang__)
76 return "CLANG " __clang_version__;
77#elif defined (__GNUC__)
78 return "GCC " __VERSION__;
79#elif defined(_MSC_VER)
80 std::string version = toString(_MSC_FULL_VER);
81 version.insert(4,".");
82 version.insert(9,".");
83 version.insert(2,".");
84 return "Visual C++ Compiler " + version;
85#else
86 return "Unknown Compiler";
87#endif
88 }
89
90 std::string getCPUVendor()
91 {

Callers 1

printMethod · 0.85

Calls 1

toStringFunction · 0.85

Tested by

no test coverage detected