mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-22 09:50:21 +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)
|
TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no)
|
||||||
|
|
||||||
ifneq ($(TCC_GIT_HASH),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
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_WIN32
|
ifdef CONFIG_WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user