diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-12-11 11:48:21 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-02-23 08:47:01 -0800 |
| commit | 95b3b9f710a19726f44eb76b15a6690e90c55b37 (patch) | |
| tree | 16754648c5d5b3a15756b7498eff0229297c7576 /mesonbuild/mdist.py | |
| parent | 39e1bf19fb653ac4f040e48b9a33aaa59dea1196 (diff) | |
| download | meson-95b3b9f710a19726f44eb76b15a6690e90c55b37.tar.gz | |
coredata: use a Protocol for shared options between setup configure and dist
These are all passed around interchangably inside Meson, so use a shared
protocol for them.
Diffstat (limited to 'mesonbuild/mdist.py')
| -rw-r--r-- | mesonbuild/mdist.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py index 67442885a..f9a63bc02 100644 --- a/mesonbuild/mdist.py +++ b/mesonbuild/mdist.py @@ -1,5 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team +# Copyright © 2023 Intel Corporation from __future__ import annotations @@ -304,7 +305,7 @@ def check_dist(packagename: str, meson_command: ImmutableListProtocol[str], extr def create_cmdline_args(bld_root: str) -> T.List[str]: parser = argparse.ArgumentParser() msetup_argparse(parser) - args = parser.parse_args([]) + args = T.cast('coredata.SharedCMDOptions', parser.parse_args([])) coredata.parse_cmd_line_options(args) coredata.read_cmd_line_file(bld_root, args) args.cmd_line_options.pop(OptionKey('backend'), '') |
