mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
Fix commit id display under MinGW compile
This commit is contained in:
parent
f8e68b70b5
commit
f713a69ff9
4
makefile
4
makefile
@ -342,10 +342,10 @@ else
|
||||
NETWORK_OPT += -DUSE_SHARED
|
||||
endif
|
||||
ifneq (,$(shell if exist .git-commit-id type .git-commit-id))
|
||||
GIT_COMMIT_ID==$(shell if exist .git-commit-id type .git-commit-id)
|
||||
GIT_COMMIT_ID=$(shell if exist .git-commit-id type .git-commit-id)
|
||||
endif
|
||||
endif
|
||||
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID="$(GIT_COMMIT_ID)"
|
||||
CFLAGS_GIT = -DSIM_GIT_COMMIT_ID=\"$(GIT_COMMIT_ID)\"
|
||||
ifneq ($(DEBUG),)
|
||||
CFLAGS_G = -g -ggdb -g3
|
||||
CFLAGS_O = -O0
|
||||
|
||||
4
scp.c
4
scp.c
@ -2297,10 +2297,10 @@ if (vdelt)
|
||||
fprintf (st, " delta %d", vdelt);
|
||||
if (flag)
|
||||
fprintf (st, " [%s, %s, %s]", sim_si64, sim_sa64, sim_snet);
|
||||
fprintf (st, "\n");
|
||||
#if defined(SIM_GIT_COMMIT_ID)
|
||||
fprintf (st, "git commit id: %8.8s\n", SIM_GIT_COMMIT_ID);
|
||||
fprintf (st, " git commit id: %8.8s", SIM_GIT_COMMIT_ID);
|
||||
#endif
|
||||
fprintf (st, "\n");
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user