mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:56:38 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user