Change outdated compiler name for VS (#920)
Change "msvc12" compiler name to "Visual Studio [13-17]" for Visual Studio compiler. Name based on "_MSC_VER" parameter.
This commit is contained in:
parent
b58c438015
commit
4007980c0c
|
@ -45,7 +45,16 @@
|
||||||
#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
|
#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
|
||||||
#pragma warning(disable:4800) // 'A' : forcing value to bool 'true' or 'false' (performance warning)
|
#pragma warning(disable:4800) // 'A' : forcing value to bool 'true' or 'false' (performance warning)
|
||||||
|
|
||||||
#define BUILD_COMPILER "msvc12"
|
#if _MSC_VER == 1912 || _MSC_VER == 1911 || _MSC_VER == 1910
|
||||||
|
#define BUILD_COMPILER "Visual Studio 2017"
|
||||||
|
#elif _MSC_VER == 1900
|
||||||
|
#define BUILD_COMPILER "Visual Studio 2015"
|
||||||
|
#elif _MSC_VER == 1800
|
||||||
|
#define BUILD_COMPILER "Visual Studio 2013"
|
||||||
|
#else
|
||||||
|
#define BUILD_COMPILER "Visual Studio"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define __PRETTY_FUNCTION__ __FUNCDNAME__
|
#define __PRETTY_FUNCTION__ __FUNCDNAME__
|
||||||
#else
|
#else
|
||||||
#error "Compiler not supported."
|
#error "Compiler not supported."
|
||||||
|
|
Loading…
Reference in New Issue