interpreter: use typed_kwargs for build_target.build_rpath

This commit is contained in:
Dylan Baker 2023-09-29 14:33:52 -07:00
parent a3444d31db
commit b02d23206a
3 changed files with 2 additions and 1 deletions

View File

@ -3292,7 +3292,6 @@ class Interpreter(InterpreterBase, HoldableObject):
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

View File

@ -326,6 +326,7 @@ class _BaseBuildTarget(TypedDict):
"""
build_by_default: bool
build_rpath: str
extra_files: T.List[FileOrString]
install: bool
install_mode: FileMode

View File

@ -576,6 +576,7 @@ _BUILD_TARGET_KWS: T.List[KwargInfo] = [
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]: