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

Function getCompilerName

common/platform.cpp:93–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 std::string getCompilerName()
94 {
95 #if defined(__INTEL_COMPILER)
96 int major = __INTEL_COMPILER / 100 % 100;
97 int minor = __INTEL_COMPILER % 100 / 10;
98 std::string version = "Intel Compiler ";
99 version += toString(major);
100 version += "." + toString(minor);
101 #if defined(__INTEL_COMPILER_UPDATE)
102 version += "." + toString(__INTEL_COMPILER_UPDATE);
103 #endif
104 return version;
105 #elif defined(__clang__)
106 return "Clang " __clang_version__;
107 #elif defined(__GNUC__)
108 return "GCC " __VERSION__;
109 #elif defined(_MSC_VER)
110 std::string version = toString(_MSC_FULL_VER);
111 version.insert(4, ".");
112 version.insert(9, ".");
113 version.insert(2, ".");
114 return "Visual C++ Compiler " + version;
115 #else
116 return "Unknown";
117 #endif
118 }
119
120 std::string getBuildName()
121 {

Callers 1

commitMethod · 0.85

Calls 1

toStringFunction · 0.85

Tested by

no test coverage detected