Fixed to only pass a SIM_GIT_COMMIT_ID to a build when the commit id is available

This commit is contained in:
Mark Pizzolato 2012-12-28 15:56:57 -08:00
parent 95f4a075ba
commit 896fd92c7a

View file

@ -349,7 +349,9 @@ else
GIT_COMMIT_ID=$(shell if exist .git-commit-id type .git-commit-id)
endif
endif
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID=\"$(GIT_COMMIT_ID)\"
ifneq (,$(GIT_COMMIT_ID))
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID=\"$(GIT_COMMIT_ID)\"
endif
ifneq ($(DEBUG),)
CFLAGS_G = -g -ggdb -g3
CFLAGS_O = -O0