Add git commit hash to debug version string

This commit is contained in:
Richard Holland
2021-12-10 11:08:03 +00:00
committed by Nik Bougalis
parent fbedfb25ae
commit bf013c02ad
2 changed files with 12 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ char const* const versionString = "1.8.1"
// clang-format on
#if defined(DEBUG) || defined(SANITIZER)
#ifdef GIT_COMMIT_HASH
"-" GIT_COMMIT_HASH
#endif
"+"
#ifdef DEBUG
"DEBUG"