diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 2fd5626b6..eb18d843e 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -117,15 +117,15 @@ known_shmod_kwargs = known_build_target_kwargs | {'vs_module_defs'} known_stlib_kwargs = known_build_target_kwargs | {'pic', 'prelink'} known_jar_kwargs = known_exe_kwargs | {'main_class', 'java_resources'} -def _process_install_tag(install_tag: T.Optional[T.Sequence[T.Optional[str]]], +def _process_install_tag(install_tag: T.Optional[T.List[T.Optional[str]]], num_outputs: int) -> T.List[T.Optional[str]]: _install_tag: T.List[T.Optional[str]] if not install_tag: _install_tag = [None] * num_outputs elif len(install_tag) == 1: - _install_tag = list(install_tag) * num_outputs + _install_tag = install_tag * num_outputs else: - _install_tag = list(install_tag) + _install_tag = install_tag return _install_tag @@ -2418,7 +2418,7 @@ class CustomTarget(Target, CommandBase): install: bool = False, install_dir: T.Optional[T.Sequence[T.Union[str, Literal[False]]]] = None, install_mode: T.Optional[FileMode] = None, - install_tag: T.Optional[T.Sequence[T.Optional[str]]] = None, + install_tag: T.Optional[T.List[T.Optional[str]]] = None, absolute_paths: bool = False, backend: T.Optional['Backend'] = None, ): diff --git a/mesonbuild/modules/fs.py b/mesonbuild/modules/fs.py index 7e3c75a11..eb19ec4ff 100644 --- a/mesonbuild/modules/fs.py +++ b/mesonbuild/modules/fs.py @@ -304,7 +304,7 @@ class FSModule(ExtensionModule): install=kwargs['install'], install_dir=kwargs['install_dir'], install_mode=kwargs['install_mode'], - install_tag=kwargs['install_tag'], + install_tag=[kwargs['install_tag']], backend=state.backend, )