Add compile date and time to version.c

This commit is contained in:
Mario Hüttel 2023-01-01 21:07:10 +01:00
parent 767aa75c25
commit 2c2e4c1484
2 changed files with 8 additions and 4 deletions

View File

@ -21,7 +21,9 @@
#ifndef _VERSION_H_ #ifndef _VERSION_H_
#define _VERSION_H_ #define _VERSION_H_
extern const char *git_version_string; extern const char *version_git_version_string;
extern const char *git_full_commit_string; extern const char *version_git_full_commit_string;
extern const char *version_compile_date;
extern const char *version_compile_time;
#endif /* _VERSION_H_ */ #endif /* _VERSION_H_ */

View File

@ -21,5 +21,7 @@
#include <reflow-controller/version.h> #include <reflow-controller/version.h>
#include <generated-version/version.h> #include <generated-version/version.h>
const char *git_version_string = GIT_VERSION_STRING; const char *version_git_version_string = GIT_VERSION_STRING;
const char *git_full_commit_string = GIT_FULL_COMMIT; const char *version_git_full_commit_string = GIT_FULL_COMMIT;
const char *version_compile_date = __DATE__;
const char *version_compile_time = __TIME__;