1
0
mirror of https://github.com/simh/simh.git synced 2026-05-01 13:56:02 +00:00

Added support to display git commit id when building from a zip archive and also to display the compiler version in SHOW VERSION on more platforms

This commit is contained in:
Mark Pizzolato
2013-04-15 09:31:54 -07:00
parent 8cb6a2ef79
commit b54504906f
2 changed files with 12 additions and 2 deletions

2
scp.c
View File

@@ -2788,6 +2788,8 @@ if (flag) {
fprintf (st, "\n\t\tCompiler: Microsoft Visual C++ %d.%02d.%05d.%02d", _MSC_FULL_VER/10000000, (_MSC_FULL_VER/100000)%100, _MSC_FULL_VER%100000, _MSC_BUILD);
#elif defined (__DECC_VER)
fprintf (st, "\n\t\tCompiler: DEC C %c%d.%d-%03d", ("T SV")[((__DECC_VER/10000)%10)-6], __DECC_VER/10000000, (__DECC_VER/100000)%100, __DECC_VER%10000);
#elif defined (SIM_COMPILER)
fprintf (st, "\n\t\tCompiler: %s", SIM_COMPILER);
#endif
#if defined (__DATE__) && defined (__TIME__)
fprintf (st, "\n\t\tSimulator Compiled: %s at %s", __DATE__, __TIME__);