Skip to content

Commit

Permalink
Fix _calculate_toolset_version for VS2022.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukester1975 authored and jpakkane committed Nov 27, 2021
1 parent bd509d1 commit d014ccf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/compilers/mixins/visualstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ def _calculate_toolset_version(self, version: int) -> T.Optional[str]:
return '14.1' # (Visual Studio 2017)
elif version < 1930:
return '14.2' # (Visual Studio 2019)
elif version < 1940:
return '14.3' # (Visual Studio 2022)
mlog.warning(f'Could not find toolset for version {self.version!r}')
return None

Expand Down

0 comments on commit d014ccf

Please sign in to comment.