Explorar o código

kex: support VERSION_NODATE and VERSION_DATE for reproducible builds

support added e03d1279f49709e0d320478fa1ff7c27161c30ed

Related: #60
Victor Seva %!s(int64=10) %!d(string=hai) anos
pai
achega
8f1fbd7b17
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      modules/kex/mi_core.c

+ 8 - 0
modules/kex/mi_core.c

@@ -51,7 +51,15 @@
 #include "../../cfg/cfg.h"
 #include "../../cfg/cfg_ctx.h"
 
+#ifdef VERSION_NODATE
+#define BUILD_STR __FILE__ " compiled with " COMPILER "\n"
+#else
+#ifdef VERSION_DATE
+#define BUILD_STR __FILE__ " compiled on " VERSION_DATE " with " COMPILER "\n"
+#else
 #define BUILD_STR __FILE__ " compiled on "__TIME__ " " __DATE__ " with " COMPILER "\n"
+#endif
+#endif
 #define BUILD_STR_LEN (sizeof(BUILD_STR)-1)
 
 #ifndef SVNREVISION