diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-03-04 08:14:38 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-03-10 14:14:25 -0400 |
| commit | 4fa52925459dac650bf053715987ee7beb3b23c1 (patch) | |
| tree | 1ac2f3732063ad936eb6ef9dc6009c8c955527af /mesonbuild/mtest.py | |
| parent | 43ea11ea49948635b1d672fef1bd397233b65b19 (diff) | |
| download | meson-4fa52925459dac650bf053715987ee7beb3b23c1.tar.gz | |
coredata: replace get_option with optstore.get_value_for
This is an old method, that is now just a wrapper around the OptionStore
method, that doesn't add any value. It's also an option related method
attached to the CoreData instead of the OptionStore, so useless and a
layering violation.
Diffstat (limited to 'mesonbuild/mtest.py')
| -rw-r--r-- | mesonbuild/mtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 673f433fd..9d16e6358 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -2273,11 +2273,11 @@ def run(options: argparse.Namespace) -> int: return 1 b = build.load(options.wd) - need_vsenv = T.cast('bool', b.environment.coredata.get_option(OptionKey('vsenv'))) + need_vsenv = T.cast('bool', b.environment.coredata.optstore.get_value_for(OptionKey('vsenv'))) setup_vsenv(need_vsenv) if not options.no_rebuild: - backend = b.environment.coredata.get_option(OptionKey('backend')) + backend = b.environment.coredata.optstore.get_value_for(OptionKey('backend')) if backend == 'none': # nothing to build... options.no_rebuild = True |
