aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-12-11 23:35:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-12-13 16:09:50 +0200
commit26ffd4f8f2bca3f858cca829f4c356c6ce97c371 (patch)
treedc8850fd9ae9b7b54c39c07cacbf7255212b98e9 /mesonbuild/mesonlib.py
parent3df064484a09ef9a1ece98ea74e9c87855994d63 (diff)
downloadmeson-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.py4
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: