summaryrefslogtreecommitdiffstats
path: root/src/dfxml.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-15 18:19:22 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-15 18:19:22 +0200
commitebfc0ed789a852625121f67878db5e2a7526a5e3 (patch)
tree3a8d9bc544d9da0fed7b617d5d20451dceeb8179 /src/dfxml.c
parenta4a4873909f1045bc98b2c3b3477c1700e538034 (diff)
Do not record compilation time by default, will help to get reproductible build
Diffstat (limited to 'src/dfxml.c')
-rw-r--r--src/dfxml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dfxml.c b/src/dfxml.c
index fa63292..c9f4803 100644
--- a/src/dfxml.c
+++ b/src/dfxml.c
@@ -185,7 +185,9 @@ void xml_add_DFXML_creator(const char *package, const char *version)
xml_out2s("version", version);
xml_push("build_environment","");
xml_printf("<compiler>%s</compiler>\n", get_compiler());
+#ifdef RECORD_COMPILATION_DATE
xml_out2s("compilation_date", get_compilation_date());
+#endif
xml_printf("<library name='libext2fs' version='%s'/>\n", td_ext2fs_version());
xml_printf("<library name='libewf' version='%s'/>\n", td_ewf_version());
xml_printf("<library name='libjpeg' version='%s'/>\n", td_jpeg_version());