makefile: only provide GIT_COMMIT_TIME one time on compile commands

This commit is contained in:
Mark Pizzolato 2018-05-11 16:45:51 -07:00
parent cb53ddbc12
commit e1d2204fc9

View file

@ -1007,7 +1007,7 @@ else
endif
endif # Win32 (via MinGW)
ifneq (,$(GIT_COMMIT_ID))
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID=$(GIT_COMMIT_ID) -DSIM_GIT_COMMIT_TIME=$(GIT_COMMIT_TIME)
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID=$(GIT_COMMIT_ID)
endif
ifneq (,$(GIT_COMMIT_TIME))
CFLAGS_GIT += -DSIM_GIT_COMMIT_TIME=$(GIT_COMMIT_TIME)