diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-11 23:35:24 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-13 16:09:50 +0200 |
commit | 26ffd4f8f2bca3f858cca829f4c356c6ce97c371 (patch) | |
tree | dc8850fd9ae9b7b54c39c07cacbf7255212b98e9 /mesonbuild/mesonlib.py | |
parent | 3df064484a09ef9a1ece98ea74e9c87855994d63 (diff) | |
download | meson-26ffd4f8f2bca3f858cca829f4c356c6ce97c371.zip meson-26ffd4f8f2bca3f858cca829f4c356c6ce97c371.tar.gz meson-26ffd4f8f2bca3f858cca829f4c356c6ce97c371.tar.bz2 |
Scan all C++ sources and ignore everything else.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |