1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-18 21:37:21 +00:00

Add maiko/platform.h to detect OS + CPU. (#216)

This also adds a bit to the `-info` output to say which OS and CPU
are being targeted.

This can be used in subsequent commits to drive whether or not
we need `BYTESWAP` and whether or not unaligned memory access
is okay.

We'll be able to remove per-platform defines from all of the
makefiles and cmake.
This commit is contained in:
Bruce Mitchener
2021-01-13 10:01:49 +07:00
committed by GitHub
parent 414a4ecbbd
commit 7b979dd789
3 changed files with 151 additions and 0 deletions

View File

@@ -736,6 +736,7 @@ void print_info_lines() {
#elif (RELEASE == 351)
printf("Emulator for Medley release 3.51\n");
#endif /* RELEASE */
printf("Compiled for %s (%s) (%d bit).\n", MAIKO_OS_NAME, MAIKO_ARCH_NAME, MAIKO_ARCH_WORD_BITS);
printf("Creation date: %s", ctime(&MDate));
#ifdef LPSOLVE
printf("Contains lp_solve LP solver.\n");