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