diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-14 19:25:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 19:25:18 +0300 |
| commit | ce889d68706092159dfc4802301d01ff023f05a4 (patch) | |
| tree | 26897128a813829821d1ad714a9f19d085c9e95e /mesonbuild/dependencies/python.py | |
| parent | 0352c900bc33ae2796d1e0881986f2163b7e256d (diff) | |
| parent | 181c3499fde491650269c236ea639c92f10c6914 (diff) | |
| download | meson-ce889d68706092159dfc4802301d01ff023f05a4.tar.gz | |
Merge pull request #13307 from mesonbuild/optstorerefactor
Convert OptionStore from a dict to a full class with named methods
Diffstat (limited to 'mesonbuild/dependencies/python.py')
| -rw-r--r-- | mesonbuild/dependencies/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index a74423cb7..17c807caf 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -233,8 +233,8 @@ class _PythonDependencyBase(_Base): # `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.get_value('b_vscrt') 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'): |
