Skip to content

Commit

Permalink
interpreter: use typed_kwargs for build_target.build_rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Oct 17, 2023
1 parent a3444d3 commit b02d232
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3292,7 +3292,6 @@ def build_target(self, node: mparser.BaseNode, args: T.Tuple[str, SourcesVarargs
kwargs: T.Union[kwtypes.Executable, kwtypes.StaticLibrary, kwtypes.SharedLibrary, kwtypes.SharedModule, kwtypes.Jar],
targetclass: T.Type[T.Union[build.Executable, build.StaticLibrary, build.SharedModule, build.SharedLibrary, build.Jar]]
) -> T.Union[build.Executable, build.StaticLibrary, build.SharedModule, build.SharedLibrary, build.Jar]:
@FeatureNewKwargs('build target', '0.42.0', ['build_rpath'])
@FeatureNewKwargs('build target', '0.48.0', ['gnu_symbol_visibility'])
def build_target_decorator_caller(self, node, args, kwargs):
return True
Expand Down
1 change: 1 addition & 0 deletions mesonbuild/interpreter/kwargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ class _BaseBuildTarget(TypedDict):
"""

build_by_default: bool
build_rpath: str
extra_files: T.List[FileOrString]
install: bool
install_mode: FileMode
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 @@ -576,6 +576,7 @@ def link_whole_validator(values: T.List[T.Union[StaticLibrary, CustomTarget, Cus
default={},
since='1.2.0',
),
KwargInfo('build_rpath', str, default='', since='0.42.0'),
]

def _validate_win_subsystem(value: T.Optional[str]) -> T.Optional[str]:
Expand Down

0 comments on commit b02d232

Please sign in to comment.