mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
checking if git even is available
This commit is contained in:
parent
7a5a328c54
commit
16ccaffc3f
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -10,7 +10,9 @@ MINGW = $(findstring MINGW32, $(UNAME))
|
|||
|
||||
CC ?= clang
|
||||
CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char
|
||||
CFLAGS += -DGMQCC_GITINFO="\"`git describe`\""
|
||||
ifneq ($(shell git describe --always 2>/dev/null),)
|
||||
CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\""
|
||||
endif
|
||||
#turn on tons of warnings if clang is present
|
||||
# but also turn off the STUPID ONES
|
||||
ifeq ($(CC), clang)
|
||||
|
|
Loading…
Reference in a new issue