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:
EgzoT 2018-02-28 21:48:27 +01:00 committed by Ahmed Samy
parent b58c438015
commit 4007980c0c
1 changed files with 10 additions and 1 deletions

View File

@ -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."