diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-15 19:36:46 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-16 21:06:51 +0200 |
commit | ecd8c7e4af52109a6f319bb99d50f1a615da784d (patch) | |
tree | c67316d0570d7b6b271db29ca24d0f4d00787159 /mesonbuild/mesonlib | |
parent | a0c16f94fc3c327ac94c002bef16c0023e7f575c (diff) | |
download | meson-ecd8c7e4af52109a6f319bb99d50f1a615da784d.zip meson-ecd8c7e4af52109a6f319bb99d50f1a615da784d.tar.gz meson-ecd8c7e4af52109a6f319bb99d50f1a615da784d.tar.bz2 |
Update VS module version check.
Diffstat (limited to 'mesonbuild/mesonlib')
-rw-r--r-- | mesonbuild/mesonlib/universal.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py index b0c50c8..b0b987e 100644 --- a/mesonbuild/mesonlib/universal.py +++ b/mesonbuild/mesonlib/universal.py @@ -685,6 +685,12 @@ def detect_vcs(source_dir: T.Union[str, Path]) -> T.Optional[T.Dict[str, str]]: def current_vs_supports_modules() -> bool: vsver = os.environ.get('VSCMD_VER', '') + nums = vsver.split('.', 2) + major = int(nums[0]) + if major >= 17: + return True + if major == 16 and int(nums[1]) >= 10: + return True return vsver.startswith('16.9.0') and '-pre.' in vsver # a helper class which implements the same version ordering as RPM |