>From 350cebc9e478a0eb1464f27125a440bb8776db05 Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Tue, 26 Jun 2012 15:21:31 +0200 Subject: [PATCH] Enhanced compiler version info for --list=build-info --- src/john.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/john.c b/src/john.c index ebc1cb4..43d6f5d 100644 --- a/src/john.c +++ b/src/john.c @@ -631,6 +631,9 @@ static void john_init(char *name, int argc, char **argv) printf("CHARSET_MAX: %d (0x%02x)\n", CHARSET_MAX, CHARSET_MAX); printf("CHARSET_LENGTH: %d\n", CHARSET_LENGTH); +#ifdef __VERSION__ + printf("Compiler version: %s\n", __VERSION__); +#endif #ifdef __GNUC__ printf("gcc version: %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); @@ -638,6 +641,9 @@ static void john_init(char *name, int argc, char **argv) #ifdef __ICC printf("icc version: %d\n", __ICC); #endif +#ifdef __clang_version__ + printf("clang version: %s\n", __clang_version__); +#endif exit(0); } -- 1.7.7.6