VS 17 == MSVC v143 == Visual Studio 2022 == cl 19.3x

This commit is contained in:
Christoph M. Becker 2022-01-08 19:57:54 +01:00
parent 51eec5086f
commit 9e80947e34
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
2 changed files with 5 additions and 3 deletions

View file

@ -3101,9 +3101,11 @@ function toolset_get_compiler_name(short)
version = probe_binary(PHP_CL).substr(0, 5).replace('.', '');
if (version >= 1930) {
if (version >= 1940) {
return name;
} if (version >= 1920) {
} else if (version >= 1930) {
name = short ? "VS17" : "Visual C++ 2022";
} else if (version >= 1920) {
/* NOTE - VS is intentional. Due to changes in recent Visual Studio
versioning scheme referring to the exact VC++ version is
hardly predictable. From this version on, it refers to