History

Add 'modified' before hash when tcc is built from a patched mob version.

Christian Jullien committed 5 years ago

Commit affd7361 parent f68b39b1 file · +2 −1Browse files

Showing the changes to Makefile (1 of 1 file). Show all

Unified · Split

Makefile+2−1
@@ -27,7 +27,8 @@ VPATH = $(TOPSRC) · 26 unmodified lines
2727 TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no)
2828
2929 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)\""
3132 endif
3233
3334 ifdef CONFIG_WIN32

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t