Build System: Add common definitions for git info

Defs for commit, branch, and changes (status)
This commit is contained in:
Jonathan Archer 2019-12-01 18:08:40 -06:00 committed by Andreas Kling
parent 7aaea085de
commit 3f45ccffa6
Notes: sideshowbarker 2024-07-19 17:42:55 +09:00

View file

@ -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