Include gcc patchlevel in compiler version report.

This commit is contained in:
Bartosz Taudul 2022-10-08 13:58:25 +02:00
parent 6f9dfc8469
commit 2595f983e6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -526,7 +526,7 @@ static const char* GetHostInfo()
#elif defined __clang__
ptr += sprintf( ptr, "Compiler: clang %i.%i.%i\n", __clang_major__, __clang_minor__, __clang_patchlevel__ );
#elif defined __GNUC__
ptr += sprintf( ptr, "Compiler: gcc %i.%i\n", __GNUC__, __GNUC_MINOR__ );
ptr += sprintf( ptr, "Compiler: gcc %i.%i.%i\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ );
#else
ptr += sprintf( ptr, "Compiler: unknown\n" );
#endif