Build: Add configure defines to detailed version output
This commit is contained in:
@@ -146,7 +146,8 @@ char *CrashLog::LogOpenTTDVersion(char *buffer, const char *last) const
|
||||
" Endian: %s\n"
|
||||
" Dedicated: %s\n"
|
||||
" Build date: %s\n"
|
||||
" Configure: %s\n\n",
|
||||
" Configure: %s\n"
|
||||
" Defines: %s\n\n",
|
||||
_openttd_revision,
|
||||
_openttd_revision_modified,
|
||||
_openttd_newgrf_version,
|
||||
@@ -166,7 +167,8 @@ char *CrashLog::LogOpenTTDVersion(char *buffer, const char *last) const
|
||||
"no",
|
||||
#endif
|
||||
_openttd_build_date,
|
||||
_openttd_build_configure
|
||||
_openttd_build_configure,
|
||||
_openttd_build_configure_defines
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -53,6 +53,11 @@ const char _openttd_build_date[] = __DATE__ " " __TIME__;
|
||||
*/
|
||||
const char _openttd_build_configure[] = "!!CONFIGURE_INVOCATION!!";
|
||||
|
||||
/**
|
||||
* The configure defines used to build OpenTTD
|
||||
*/
|
||||
const char _openttd_build_configure_defines[] = "!!CONFIGURE_DEFINES!!";
|
||||
|
||||
/**
|
||||
* The git revision hash of this version.
|
||||
*/
|
||||
|
@@ -16,6 +16,7 @@ extern const char _openttd_revision[];
|
||||
extern const char _openttd_build_date[];
|
||||
extern const char _openttd_revision_hash[];
|
||||
extern const char _openttd_build_configure[];
|
||||
extern const char _openttd_build_configure_defines[];
|
||||
extern const byte _openttd_revision_modified;
|
||||
extern const byte _openttd_revision_tagged;
|
||||
extern const uint32 _openttd_newgrf_version;
|
||||
|
Reference in New Issue
Block a user