aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorUwe Kleine-König <uwe@kleine-koenig.org>2017-09-22 10:14:10 +0200
committerChristopher Li <sparse@chrisli.org>2017-10-02 23:47:50 -0400
commit9afbd4ce7ecef4fde66fab604a46ca67f8b0497c (patch)
treefb5bd414a24bb3ecc0c28e9faa978c51d08c7a82
parent57efc7462a881344ed52851b33c6a430354cafcb (diff)
downloadsparse-dev-9afbd4ce7ecef4fde66fab604a46ca67f8b0497c.tar.gz
compile-i386: Use SPARSE_VERSION instead of __DATE__
The compile date isn't very informative for a tool, the version is what really matters. Additionally using __DATE__ makes the build unreprodicible. Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Acked-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--compile-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compile-i386.c b/compile-i386.c
index 12fbcc79..1242d384 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -57,6 +57,7 @@
#include "target.h"
#include "compile.h"
#include "bitmap.h"
+#include "version.h"
struct textbuf {
unsigned int len; /* does NOT include terminating null */
@@ -691,7 +692,7 @@ void emit_unit_begin(const char *basename)
void emit_unit_end(void)
{
textbuf_emit(&unit_post_text);
- printf("\t.ident\t\"sparse silly x86 backend (built %s)\"\n", __DATE__);
+ printf("\t.ident\t\"sparse silly x86 backend (version %s)\"\n", SPARSE_VERSION);
}
/* conditionally switch sections */