Skip to content

Commit 09798df

Browse files
committed
build: Support Visual Studio 2022
Make these builds distinct from Visual Studio 2019 builds.
1 parent 18fd70c commit 09798df

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

MSVC_NMake/detectenv-msvc.mak

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ PDBVER = 14
9898
!if $(VCVERSION) > 1909 && $(VCVERSION) < 1920
9999
VSVER_SUFFIX = 1
100100
VSVER = 15
101-
!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 2000
101+
!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 1930
102102
VSVER_SUFFIX = 2
103103
VSVER = 16
104+
!elseif $(VCVERSION) > 1929 && $(VCVERSION) < 2000
105+
VSVER_SUFFIX = 3
106+
VSVER = 17
104107
!else
105108
VSVER = $(PDBVER)
106109
!endif

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ if is_msvc
209209
add_project_arguments(cpp_compiler.get_supported_arguments([ '/utf-8', '/wd4828']), language: 'cpp')
210210

211211
if use_msvc14x_toolset_ver
212-
if cpp_compiler.version().version_compare('>=19.20')
212+
if cpp_compiler.version().version_compare('>=19.30')
213+
msvc14x_toolset_ver = '-vc143'
214+
elif cpp_compiler.version().version_compare('>=19.20')
213215
msvc14x_toolset_ver = '-vc142'
214216
elif cpp_compiler.version().version_compare('>=19.10')
215217
msvc14x_toolset_ver = '-vc141'

0 commit comments

Comments
 (0)