summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/python.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-08 23:16:36 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-06-14 17:19:53 +0300
commitc0d86024f5e647858f88bc400b45b3ad88a25c97 (patch)
treeb6384fe1f810a32c5276bf4bd8b8c641505d8157 /mesonbuild/dependencies/python.py
parent2b1510d7068747541f8d49ba876570d62fde5d0e (diff)
downloadmeson-c0d86024f5e647858f88bc400b45b3ad88a25c97.tar.gz
Rename option variable to optstore to make it unique.
Diffstat (limited to 'mesonbuild/dependencies/python.py')
-rw-r--r--mesonbuild/dependencies/python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index a0a22c1a5..2ec7b9d92 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -296,8 +296,8 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase):
# `debugoptimized` buildtype may not set debug=True currently, see gh-11645
is_debug_build = debug or buildtype == 'debug'
vscrt_debug = False
- if mesonlib.OptionKey('b_vscrt') in self.env.coredata.options:
- vscrt = self.env.coredata.options[mesonlib.OptionKey('b_vscrt')].value
+ if mesonlib.OptionKey('b_vscrt') in self.env.coredata.optstore:
+ vscrt = self.env.coredata.optstore[mesonlib.OptionKey('b_vscrt')].value
if vscrt in {'mdd', 'mtd', 'from_buildtype', 'static_from_buildtype'}:
vscrt_debug = True
if is_debug_build and vscrt_debug and not self.variables.get('Py_DEBUG'):