BASE: Include compiler name/version info

This commit is contained in:
Donovan Watteau 2022-04-12 22:47:04 +02:00 committed by Eugene Sandulenko
parent 07a795d600
commit b51e8a8f58
2 changed files with 18 additions and 0 deletions

View File

@ -60,6 +60,23 @@ static const char *version_cookie __attribute__((used)) = "$VER: ScummVM " SCUMM
#endif
const char gScummVMBuildDate[] = __DATE__ " " __TIME__;
const char gScummVMVersionDate[] = SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
const char gScummVMCompiler[] = ""
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
#if defined(_MSC_VER)
"MSVC " STR(_MSC_FULL_VER)
#elif defined(__INTEL_COMPILER)
"ICC " STR(__INTEL_COMPILER) "." STR(__INTEL_COMPILER_UPDATE)
#elif defined(__clang__)
"Clang " STR(__clang_major__) "." STR(__clang_minor__) "." STR(__clang_patchlevel__)
#elif defined(__GNUC__)
"GCC " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__)
#else
"unknown compiler"
#endif
#undef STR
#undef STR_HELPER
;
const char gScummVMFullVersion[] = "ScummVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
const char gScummVMFeatures[] = ""
#ifdef TAINTED_BUILD

View File

@ -25,6 +25,7 @@
extern const char gScummVMVersion[]; // e.g. "0.4.1"
extern const char gScummVMBuildDate[]; // e.g. "2003-06-24"
extern const char gScummVMVersionDate[]; // e.g. "0.4.1 (2003-06-24)"
extern const char gScummVMCompiler[]; // e.g. "GCC 11.2.0"
extern const char gScummVMFullVersion[]; // e.g. "ScummVM 0.4.1 (2003-06-24)"
extern const char gScummVMFeatures[]; // e.g. "ALSA MPEG2 zLib"