interpreter: use typed_kwargs for build_target.build_rpath
This commit is contained in:
parent
a3444d31db
commit
b02d23206a
|
@ -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
|
||||
|
|
|
@ -326,6 +326,7 @@ class _BaseBuildTarget(TypedDict):
|
|||
"""
|
||||
|
||||
build_by_default: bool
|
||||
build_rpath: str
|
||||
extra_files: T.List[FileOrString]
|
||||
install: bool
|
||||
install_mode: FileMode
|
||||
|
|
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue