mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-20 20:04:20 +08:00
tcc -v displays short hash to ease detection of source version used to compile tcc
This commit is contained in:
parent
47da8e450e
commit
65d00b13d5
6
Makefile
6
Makefile
@ -24,6 +24,12 @@ CFLAGS += -I$(TOP)
|
||||
CFLAGS += $(CPPFLAGS)
|
||||
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)\"
|
||||
endif
|
||||
|
||||
ifdef CONFIG_WIN32
|
||||
CFG = -win
|
||||
ifneq ($(CONFIG_static),yes)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user