Add 'modified' before hash when tcc is built from a patched mob version.
This commit is contained in:
parent
f68b39b922
commit
affd736f19
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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
|
||||
|
|
Loading…
Add table
Reference in a new issue