aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-05-22 17:08:44 +0300
committerGitHub <noreply@github.com>2020-05-22 17:08:44 +0300
commit2b1ca518cfce52dc5e8da086efca563677c353e4 (patch)
tree899bafe2681288744975fe7cb6affd9cd756ddf0 /mesonbuild/mesonlib.py
parent2fd838d62dc16af0687b4be7da4ffb28cb6a9725 (diff)
parentcb4e4f625f8f191eb5ed1bd435a263b0c7bd11cf (diff)
downloadmeson-2b1ca518cfce52dc5e8da086efca563677c353e4.zip
meson-2b1ca518cfce52dc5e8da086efca563677c353e4.tar.gz
meson-2b1ca518cfce52dc5e8da086efca563677c353e4.tar.bz2
Merge pull request #7123 from dcbaker/use-feature-deprecated
Use FeatureDeprecated (and other cleanups)
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index b901ec9..26fe6eb 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -39,8 +39,10 @@ _U = T.TypeVar('_U')
have_fcntl = False
have_msvcrt = False
+# TODO: this is such a hack, this really should be either in coredata or in the
+# interpreter
# {subproject: project_meson_version}
-project_meson_versions = {} # type: T.Dict[str, str]
+project_meson_versions = collections.defaultdict(str) # type: T.DefaultDict[str, str]
try:
import fcntl