From 3f45ccffa6c2573e9f0ddd4175826614d886587a Mon Sep 17 00:00:00 2001 From: Jonathan Archer Date: Sun, 1 Dec 2019 18:08:40 -0600 Subject: [PATCH] Build System: Add common definitions for git info Defs for commit, branch, and changes (status) --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index c00bab00c0c..fddac1b9b9b 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