diff options
author | Dominic Hargreaves <dom@earth.li> | 2016-04-21 22:23:25 +0100 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2016-04-21 23:08:12 +0100 |
commit | fab07d6b75d8ddd9735b4bc02a57bf23cda5330f (patch) | |
tree | 197e69f638c01ac790acda471a7c1383e6dd6c34 /include | |
parent | 8b6e17fe7e706ce87e700a4962d450d9cdeac85f (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
Diffstat (limited to 'include')
-rw-r--r-- | include/anope.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index dadc73b13..48a4f7674 100644 --- a/include/anope.h +++ b/include/anope.h @@ -336,7 +336,9 @@ namespace Anope template<typename T> class multimap : public std::multimap<string, T, ci::less> { }; template<typename T> class hash_map : public TR1NS::unordered_map<string, T, hash_ci, compare> { }; +#ifndef REPRODUCIBLE_BUILD static const char *const compiled = __TIME__ " " __DATE__; +#endif /** The time Anope started. */ |