Skip to content

Commit

Permalink
interpreter: Use typed_kwargs for build_target.link_args
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Sep 25, 2023
1 parent 4738d1e commit 544937d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mesonbuild/interpreter/kwargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ class _BuildTarget(_BaseBuildTarget):
cython_args: T.List[str]
nasm_args: T.List[str]
masm_args: T.List[str]
link_args: T.List[str]


class Executable(_BuildTarget):
Expand Down
1 change: 1 addition & 0 deletions mesonbuild/interpreter/type_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ def link_whole_validator(values: T.List[T.Union[StaticLibrary, CustomTarget, Cus
_BUILD_TARGET_KWS: T.List[KwargInfo] = [
*_ALL_TARGET_KWS,
*_LANGUAGE_KWS,
_BASE_LANG_KW.evolve(name='link_args'),
RUST_CRATE_TYPE_KW,
]

Expand Down

0 comments on commit 544937d

Please sign in to comment.