diff options
author | Adam <adam@sigterm.info> | 2016-04-22 10:17:11 -0500 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2016-04-22 10:17:11 -0500 |
commit | a2dbcc620e92b0af418cdd03b736bf9ca54cf19b (patch) | |
tree | 025c40e5e218b90109091cf6e69294e7a881a395 /src/misc.cpp | |
parent | 9b5fdea8f299fa63eb59196828b8546ab951d045 (diff) | |
parent | fab07d6b75d8ddd9735b4bc02a57bf23cda5330f (diff) |
Merge pull request #166 from jmdh/2.0-reproducible
Optionally strip variable build date from compiled program
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index e1d78c800..8149481ca 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -632,7 +632,11 @@ Anope::string Anope::VersionShort() Anope::string Anope::VersionBuildString() { +#ifdef REPRODUCIBLE_BUILD + Anope::string s = "build #" + stringify(BUILD); +#else Anope::string s = "build #" + stringify(BUILD) + ", compiled " + Anope::compiled; +#endif Anope::string flags; #ifdef DEBUG_BUILD |