From 26ffd4f8f2bca3f858cca829f4c356c6ce97c371 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 11 Dec 2020 23:35:24 +0200 Subject: Scan all C++ sources and ignore everything else. --- mesonbuild/mesonlib.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/mesonlib.py') diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index d46dfca..e773144 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -586,6 +586,10 @@ def detect_vcs(source_dir: T.Union[str, Path]) -> T.Optional[T.Dict[str, str]]: return vcs return None +def current_vs_supports_modules() -> bool: + vsver = os.environ.get('VSCMD_VER', '') + return vsver.startswith('16.9.0') and '-pre.' in vsver + # a helper class which implements the same version ordering as RPM class Version: def __init__(self, s: str) -> None: -- cgit v1.1