summaryrefslogtreecommitdiff
path: root/src/shl_log.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-03-04 15:05:17 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-03-04 15:05:17 +0100
commit9c2375b6d4e725f0757d7df83473177234425dc4 (patch)
tree2167d1f6f07586d3e5520e950a6508347e2d0c05 /src/shl_log.c
parent0249b2cb0b0da272a78b4967b9c9f6f02d73cad5 (diff)
shl: move githead into a source file
This moves githead.h to shl_githead.c so we can skip recompilations on GIT-HEAD changes. We only need to relink now (which we cannot skip). This speeds up build-processes considerably on slower machines. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src/shl_log.c')
-rw-r--r--src/shl_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shl_log.c b/src/shl_log.c
index d35a31f..5b726a4 100644
--- a/src/shl_log.c
+++ b/src/shl_log.c
@@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
-#include "githead.h"
+#include "shl_githead.h"
#include "shl_log.h"
#include "shl_misc.h"
@@ -505,5 +505,5 @@ void log_print_init(const char *appname)
appname = "<unknown>";
log_format(LOG_DEFAULT_CONF, NULL, LOG_NOTICE,
"%s Revision %s %s %s", appname,
- BUILD_GIT_HEAD, __DATE__, __TIME__);
+ shl_git_head, __DATE__, __TIME__);
}