CC ?= clang
CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char
-CFLAGS += -DGMQCC_GITINFO="`git describe`"
+CFLAGS += -DGMQCC_GITINFO="\"`git describe`\""
#turn on tons of warnings if clang is present
# but also turn off the STUPID ONES
ifeq ($(CC), clang)
#define GMQCC_VERSION \
GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
-#ifndef GMQCC_GITINFO
-# define GMQCC_GITINFO "(no git info)"
-#endif
-
/*
* We cannot rely on C99 at all, since compilers like MSVC
* simply don't support it. We define our own boolean type
__DATE__,
__TIME__
);
+#ifdef GMQCC_GITINFO
+ con_out("git build: %s\n", GMQCC_GITINFO);
+#endif
}
static int usage() {