summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorJonathan Archer <jon@jonnyarcher.com>2019-12-01 18:08:40 -0600
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 09:21:47 +0100
commit3f45ccffa6c2573e9f0ddd4175826614d886587a (patch)
tree956e6e0055063fb5d39c32d33f5e6ca4b5bb084c /Makefile.common
parent7aaea085de7ee68d5c6001e04cfece47deccbd87 (diff)
downloadserenity-3f45ccffa6c2573e9f0ddd4175826614d886587a.zip
Build System: Add common definitions for git info
Defs for commit, branch, and changes (status)
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index c00bab00c0..fddac1b9b9 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -40,6 +40,6 @@ LD = i686-pc-serenity-g++
AS = i686-pc-serenity-as
LINK = i686-pc-serenity-ld
-DEFINES = -DSANITIZE_PTRS -DDEBUG
+DEFINES = -DSANITIZE_PTRS -DDEBUG -DGIT_COMMIT=\"`git rev-parse --short HEAD`\" -DGIT_BRANCH=\"`git rev-parse --abbrev-ref HEAD`\" -DGIT_CHANGES=\"`git diff-index --quiet HEAD -- && echo "tracked"|| echo "untracked"`\"
IPCCOMPILER = $(SERENITY_BASE_DIR)/DevTools/IPCCompiler/IPCCompiler