From 19beb070e8d3f130df6301e43a6fc940c7268ace Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 4 Oct 2023 11:07:56 -0700 Subject: [PATCH] interpreter: use typed_kwargs for build_target.d_debug --- mesonbuild/interpreter/kwargs.py | 1 + mesonbuild/interpreter/type_checking.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py index 2f3f37f67..daa5d4dfe 100644 --- a/mesonbuild/interpreter/kwargs.py +++ b/mesonbuild/interpreter/kwargs.py @@ -333,6 +333,7 @@ class _BuildTarget(_BaseBuildTarget): """Arguments shared by non-JAR functions""" + d_debug: T.List[T.Union[str, int]] rust_dependency_map: T.Dict[str, str] sources: SourcesVarargsType c_args: T.List[str] diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index 153a0d9e9..08e9b3878 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -560,6 +560,7 @@ _BUILD_TARGET_KWS: T.List[KwargInfo] = [ *_LANGUAGE_KWS, BT_SOURCES_KW, RUST_CRATE_TYPE_KW, + KwargInfo('d_debug', ContainerTypeInfo(list, (str, int)), default=[], listify=True), KwargInfo( 'rust_dependency_map', ContainerTypeInfo(dict, str),