Show ./configure invocation in crash log.

This commit is contained in:
Jonathan G Rennison
2016-06-10 19:57:51 +01:00
parent 411f91731d
commit 0951cb320c
6 changed files with 26 additions and 4 deletions

View File

@@ -103,7 +103,8 @@ char *CrashLog::LogOpenTTDVersion(char *buffer, const char *last) const
" Bits: %d\n"
" Endian: %s\n"
" Dedicated: %s\n"
" Build date: %s\n\n",
" Build date: %s\n"
" Configure: %s\n\n",
_openttd_revision,
_openttd_revision_modified,
_openttd_newgrf_version,
@@ -122,7 +123,8 @@ char *CrashLog::LogOpenTTDVersion(char *buffer, const char *last) const
#else
"no",
#endif
_openttd_build_date
_openttd_build_date,
_openttd_build_configure
);
}

View File

@@ -49,6 +49,12 @@ const char _openttd_revision[] = "!!VERSION!!";
*/
const char _openttd_build_date[] = __DATE__ " " __TIME__;
/**
* The configure invocation used to build OpenTTD
*/
const char _openttd_build_configure[] = "!!CONFIGURE_INVOCATION!!";
/**
* Let us know if current build was modified. This detection
* works even in the case when revision string is overridden by

View File

@@ -14,6 +14,7 @@
extern const char _openttd_revision[];
extern const char _openttd_build_date[];
extern const char _openttd_build_configure[];
extern const byte _openttd_revision_modified;
extern const uint32 _openttd_newgrf_version;