Showing the changes to Makefile (1 of 1 file). Show all
Unified · Split
| @@ -27,7 +27,8 @@ VPATH = $(TOPSRC) · 26 unmodified lines | ||
| 27 | 27 | TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no) |
| 28 | 28 | |
| 29 | 29 | ifneq ($(TCC_GIT_HASH),no) |
| 30 | − CFLAGS += -DTCC_GIT_HASH="\"$(TCC_GIT_HASH)\"" | |
| 30 | + MODIFIED = $(shell git diff | grep --quiet +++ && echo "modified ") | |
| 31 | + CFLAGS += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\"" | |
| 31 | 32 | endif |
| 32 | 33 | |
| 33 | 34 | ifdef CONFIG_WIN32 |