summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
authorDominic Hargreaves <dom@earth.li>2016-04-21 22:23:25 +0100
committerAdam <Adam@anope.org>2016-10-02 13:59:15 -0400
commit04ab5f59663fe1e1ceb409d342e7a0f8c1d91728 (patch)
treee687a71ac7168b0a579eccb0baf917c976402233 /include/anope.h
parentca9e3e12987e2cfb5b7685a82309f8d3c0ca0d3c (diff)
Optionally strip variable build date from compiled program
To aid build reproducibility, don't include the build date/time if -DREPRODUCIBLE_BUILD is defined. Based on the patch provided by Alexis Bienvenüe in the Debian report. Bug-Debian: https://bugs.debian.org/820152 Patch-Name: reproducible_datetime.diff (cherry picked from commit fab07d6b75d8ddd9735b4bc02a57bf23cda5330f)
Diffstat (limited to 'include/anope.h')
-rw-r--r--include/anope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h
index f3f05cb15..49e7c7ddc 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -350,7 +350,9 @@ namespace Anope
template<typename T> using hash_map = std::unordered_map<string, T, hash_ci, compare_ci>;
template<typename T> using locale_hash_map = std::unordered_map<string, T, hash_locale, compare_locale>;
+#ifndef REPRODUCIBLE_BUILD
static const char *const compiled = __TIME__ " " __DATE__;
+#endif
/** The time Anope started.
*/