mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-12 09:00:09 +08:00
Add 'modified' before hash when tcc is built from a patched mob version.
This commit is contained in:
parent
f68b39b922
commit
affd736f19
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…
Reference in New Issue
Block a user