diff options
author | Slávek Banko <[email protected]> | 2021-01-16 00:55:28 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-01-16 00:55:28 +0100 |
commit | 46ca3fa9524fb1800a26b65fc49b1e5bc41be613 (patch) | |
tree | 0affa528ab2b7cd1104d939ac7967e0ff6220e06 /src | |
parent | bda2d7559f18b2e02050dc433c5ff70cec8e3362 (diff) | |
download | tork-46ca3fa9524fb1800a26b65fc49b1e5bc41be613.tar.gz tork-46ca3fa9524fb1800a26b65fc49b1e5bc41be613.zip |
Replace __DATE__ with PACKAGE_DATETIME in the crash handler
to allow reproducible build.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/crashhandler.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/crashhandler.cpp b/src/crashhandler.cpp index 3deb9a6..cd2bafc 100644 --- a/src/crashhandler.cpp +++ b/src/crashhandler.cpp @@ -10,6 +10,10 @@ * * ***************************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <tqfile.h> #include <tqregexp.h> #include <tqtextstream.h> @@ -90,10 +94,14 @@ namespace torK body += "======== DEBUG INFORMATION =======\n" "Version: " TORK_VERSION "\n" +#if defined( PACKAGE_DATETIME ) + "Date, time: " PACKAGE_DATETIME "\n" +#else "Build date: " __DATE__ "\n" +#endif "CC version: " __VERSION__ "\n" //assuming we're using GCC - "KDElibs: " TDE_VERSION_STRING "\n" - "TQt: %2\n" + "TDElibs: " TDE_VERSION_STRING "\n" + "TQt: %2\n" "CPU count: %6\n"; TQString cpucount = "unknown"; |