mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
Fixed to only pass a SIM_GIT_COMMIT_ID to a build when the commit id is available
This commit is contained in:
4
makefile
4
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
|
||||
|
||||
Reference in New Issue
Block a user