From c04c956b66312d8a7afa97eb8859fd4d2d22ed6b Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Mon, 11 Mar 2013 10:14:59 -0700 Subject: [PATCH] Make the build-time show up in the leveldb library. Summary: This is a regression caused by https://github.com/facebook/rocksdb/commit/772f75b3fbc5cfcf4d519114751efeae04411fa1 If you do "strings libleveldb.a | grep leveldb_build_git_datetime" it will show you the time when the binary was built. Test Plan: make check Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D9273 --- build_detect_version | 1 + 1 file changed, 1 insertion(+) diff --git a/build_detect_version b/build_detect_version index 73dbf62af..5f0237e85 100755 --- a/build_detect_version +++ b/build_detect_version @@ -20,6 +20,7 @@ else echo "git not found"| awk ' BEGIN {print "#include \"build_version.h\""} {print "const char * leveldb_build_git_sha = \"leveldb_build_git_sha:git not found\";"} END {}' > ${VFILE} fi +date | awk 'BEGIN {} {print "const char * leveldb_build_git_datetime = \"leveldb_build_git_datetime:"$0"\";"} END {} ' >> ${VFILE} echo "const char * leveldb_build_compile_date = __DATE__;" >> ${VFILE} echo "const char * leveldb_build_compile_time = __TIME__;" >> ${VFILE}