aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-23 15:11:09 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-10-01 15:05:00 -0700
commit6d173f9678b02fce302c9bb59f0c8d19c6178fde (patch)
tree69759dd8edb3679a548e8e6d0aa9a05d3fec6ec0 /mesonbuild/mintro.py
parent224a75248918e35e0cb55487c558ef6fa7e84553 (diff)
downloadmeson-6d173f9678b02fce302c9bb59f0c8d19c6178fde.zip
meson-6d173f9678b02fce302c9bb59f0c8d19c6178fde.tar.gz
meson-6d173f9678b02fce302c9bb59f0c8d19c6178fde.tar.bz2
mesonlib: make OptionOverrideProxy a true MutableMapping
So that we can actually use it anyplace that an OptionDictType could be used. I've also done a bit optimizing/simplifying of the implementation. This is needed for cuda, as it returns an OptionOverrideProxy where we ask for an OptionDicType
Diffstat (limited to 'mesonbuild/mintro.py')
-rw-r--r--mesonbuild/mintro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 66bbe2a..f7cbf80 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -220,7 +220,7 @@ def list_buildoptions(coredata: cdata.CoreData, subprojects: T.Optional[T.List[s
sub_core_options[sub + ':' + k] = o
core_options.update(sub_core_options)
- def add_keys(options: T.Dict[str, cdata.UserOption], section: str, machine: str = 'any') -> None:
+ def add_keys(options: 'cdata.OptionDictType', section: str, machine: str = 'any') -> None:
for key in sorted(options.keys()):
opt = options[key]
optdict = {'name': key, 'value': opt.value, 'section': section, 'machine': machine}