added compiler type logging to startup

This commit is contained in:
Turánszki János
2025-11-25 11:42:48 +01:00
parent ffcc3abdf6
commit 425fb854cd
+13 -1
View File
@@ -43,7 +43,19 @@ namespace wi::initializer
static constexpr const char* platform_string = "Xbox";
#endif // PLATFORM
wilog("\n[wi::initializer] Initializing Wicked Engine, please wait...\nVersion: %s\nPlatform: %s", wi::version::GetVersionString(), platform_string);
#if defined(_MSC_VER) && defined(__clang__)
static constexpr const char* compiler_string = "CLANG-CL";
#elif defined(__clang__)
static constexpr const char* compiler_string = "CLANG";
#elif defined(_MSC_VER)
static constexpr const char* compiler_string = "MSVC";
#elif defined(__GNUC__)
static constexpr const char* compiler_string = "GCC";
#else
static constexpr const char* compiler_string = "UNKNOWN";
#endif
wilog("\n[wi::initializer] Initializing Wicked Engine, please wait...\nVersion: %s\nPlatform: %s\nCompiler: %s", wi::version::GetVersionString(), platform_string, compiler_string);
StackString<1024> cpustring;
#if defined(PLATFORM_WINDOWS_DESKTOP) || defined(PLATFORM_LINUX)