diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-09 01:03:49 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-14 17:19:53 +0300 |
| commit | 9a6fcd4d9a0c7bb248c5d0587632b741a3301e03 (patch) | |
| tree | f066ab0ee942d2f12579bb075cb3afbdf3386f0b /run_tests.py | |
| parent | c0d86024f5e647858f88bc400b45b3ad88a25c97 (diff) | |
| download | meson-9a6fcd4d9a0c7bb248c5d0587632b741a3301e03.tar.gz | |
Replace direct indexing with named methods.
Diffstat (limited to 'run_tests.py')
| -rwxr-xr-x | run_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py index 5b229d790..8ab53a1a5 100755 --- a/run_tests.py +++ b/run_tests.py @@ -151,7 +151,7 @@ def get_fake_env(sdir='', bdir=None, prefix='', opts=None): if opts is None: opts = get_fake_options(prefix) env = Environment(sdir, bdir, opts) - env.coredata.optstore[OptionKey('args', lang='c')] = FakeCompilerOptions() + env.coredata.optstore.set_value_object(OptionKey('args', lang='c'), FakeCompilerOptions()) env.machines.host.cpu_family = 'x86_64' # Used on macOS inside find_library # Invalidate cache when using a different Environment object. clear_meson_configure_class_caches() |
