1
0
mirror of https://github.com/simh/simh.git synced 2026-02-10 10:11:20 +00:00

makefile: Make compile time Android Version visible in SHOW VERSION output

This commit is contained in:
Mark Pizzolato
2018-05-10 21:55:15 -07:00
parent c1894a7ddb
commit cb53ddbc12
2 changed files with 9 additions and 2 deletions

9
scp.c
View File

@@ -5321,7 +5321,14 @@ if (flag) {
#else
cpp = "C";
#endif
fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s", cpp, arch, build, __DATE__, __TIME__);
#if !defined (SIM_BUILD_OS)
#define SIM_BUILD_OS
#endif
#define S_xstr(a) S_str(a)
#define S_str(a) #a
fprintf (st, "\n Simulator Compiled as %s%s%s on %s at %s%s", cpp, arch, build, __DATE__, __TIME__, S_xstr(SIM_BUILD_OS));
#undef S_str
#undef S_xstr
#endif
fprintf (st, "\n Memory Access: %s Endian", sim_end ? "Little" : "Big");
fprintf (st, "\n Memory Pointer Size: %d bits", (int)sizeof(dptr)*8);