From 896fd92c7acecdca8db4a6cf85dbd0dae56e15c8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 28 Dec 2012 15:56:57 -0800 Subject: [PATCH] Fixed to only pass a SIM_GIT_COMMIT_ID to a build when the commit id is available --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index bac59a48..8a2f8ff5 100644 --- a/makefile +++ b/makefile @@ -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