- added clang detection in binary version output

This commit is contained in:
SoftCoder 2014-01-21 17:06:10 -08:00
parent 977ce33649
commit 9170d9c400
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ string getCompilerNameString() {
#if defined(WIN32) && defined(_MSC_VER)
version = "VC++: " + intToStr(_MSC_VER);
#elif defined(__clang__)
version = "Clang: " + intToStr(__clang_major__) + "." + intToStr(__clang_minor__) + "." + intToStr(__clang_patchlevel__);
#elif defined(__GNUC__)
#if defined(__GNUC__)
# if defined(__GNUC_PATCHLEVEL__)