From d31d1f5946ec60a734d819fdd81c7cc90f3b0908 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 25 Jul 2019 19:03:58 +0200 Subject: [PATCH] Detect and report clang-cl. --- client/TracyProfiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 0042deb1..b7a42c6f 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -402,7 +402,11 @@ static const char* GetHostInfo() #endif #if defined _MSC_VER +# if defined __clang__ + ptr += sprintf( ptr, "Compiler: MSVC clang-cl %i.%i.%i\n", __clang_major__, __clang_minor__, __clang_patchlevel__ ); +# else ptr += sprintf( ptr, "Compiler: MSVC %i\n", _MSC_VER ); +# endif #elif defined __clang__ ptr += sprintf( ptr, "Compiler: clang %i.%i.%i\n", __clang_major__, __clang_minor__, __clang_patchlevel__ ); #elif defined __GNUC__