Browse Source

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.
EgzoT 3 years ago
parent
commit
4007980c0c
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      src/framework/stdext/compiler.h

+ 10
- 1
src/framework/stdext/compiler.h View File

@@ -45,7 +45,16 @@
45 45
     #pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
46 46
     #pragma warning(disable:4800) // 'A' : forcing value to bool 'true' or 'false' (performance warning)
47 47
 
48
-    #define BUILD_COMPILER "msvc12"
48
+    #if _MSC_VER == 1912 || _MSC_VER == 1911 || _MSC_VER == 1910
49
+    #define BUILD_COMPILER "Visual Studio 2017"
50
+    #elif _MSC_VER == 1900
51
+    #define BUILD_COMPILER "Visual Studio 2015"
52
+    #elif _MSC_VER == 1800
53
+    #define BUILD_COMPILER "Visual Studio 2013"
54
+    #else
55
+    #define BUILD_COMPILER "Visual Studio"
56
+    #endif
57
+
49 58
     #define __PRETTY_FUNCTION__ __FUNCDNAME__
50 59
 #else
51 60
     #error "Compiler not supported."

Loading…
Cancel
Save