From affd736f19c2dbc8da61338466461ab6a99409bb Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Fri, 2 Apr 2021 08:00:31 +0200 Subject: [PATCH] Add 'modified' before hash when tcc is built from a patched mob version. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97527f0b..5ed10d84 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,8 @@ VPATH = $(TOPSRC) TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no) ifneq ($(TCC_GIT_HASH),no) - CFLAGS += -DTCC_GIT_HASH="\"$(TCC_GIT_HASH)\"" + MODIFIED = $(shell git diff | grep --quiet +++ && echo "modified ") + CFLAGS += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\"" endif ifdef CONFIG_WIN32