pmt: versioner: add 32-bit or 64-bit build information to version information
This commit is contained in:
@@ -27,15 +27,26 @@ extern "C" {
|
|||||||
|
|
||||||
void version()
|
void version()
|
||||||
{
|
{
|
||||||
printf("Version: %s (code %s)\n", PMT_VERSION, PMT_VERSION_CODE);
|
printf("Version: %s (code %s) ", PMT_VERSION, PMT_VERSION_CODE);
|
||||||
|
|
||||||
|
#if __SIZEOF_POINTER__ == 4
|
||||||
|
printf("32-bit binary\n");
|
||||||
|
#elif __SIZEOF_POINTER__ == 8
|
||||||
|
printf("64-bit binary\n");
|
||||||
|
#else
|
||||||
|
printf("\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
printf("Compiler: clang %s ", __clang_version__);
|
printf("Compiler: clang %s ", __clang_version__);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
printf("(GNUC %d.%d.%d)\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
printf("(GNUC %d.%d.%d)\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
||||||
#else
|
#else
|
||||||
printf("\n");
|
printf("\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf("See licenses with -L argument.\n");
|
printf("See licenses with -L argument.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user