about summary refs log tree commit diff homepage
path: root/lib/Support
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-09-29 09:55:18 +0200
committerJiri Slaby <jslaby@suse.cz>2016-09-29 12:17:07 +0200
commit906ce869eb68a70b88a459f63dac8147ecc88a0c (patch)
tree137d6bed38eaa854ee3fdd51c4d89d34d2c75ea0 /lib/Support
parent43d5145572f4139146cb394e8ede6ea6dcef15b0 (diff)
downloadklee-906ce869eb68a70b88a459f63dac8147ecc88a0c.tar.gz
configure: add option to enable timestamping
It is pain for build systems to see __DATE__ or __TIME__ in sources as
the build is not reproducible. So disable the timestamping by default
and add an option to enable it if somebody is really after it.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/PrintVersion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/PrintVersion.cpp b/lib/Support/PrintVersion.cpp
index b4ff9811..dfea5007 100644
--- a/lib/Support/PrintVersion.cpp
+++ b/lib/Support/PrintVersion.cpp
@@ -17,7 +17,9 @@
 void klee::printVersion()
 {
   llvm::outs() << PACKAGE_STRING " (" PACKAGE_URL ")\n";
+#ifdef KLEE_ENABLE_TIMESTAMP
   llvm::outs() << "  Built " __DATE__ " (" __TIME__ ")\n";
+#endif
   llvm::outs() << "  Build mode: " << KLEE_BUILD_MODE "\n";
   llvm::outs() << "  Build revision: ";
 #ifdef KLEE_BUILD_REVISION