Skip to content

Commit

Permalink
run_target: accept CustomTargetIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
gerion0 committed Mar 11, 2024
1 parent f947978 commit 2ad76d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/yaml/functions/run_target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ kwargs:
the first item will find that command in `PATH` and run it.
depends:
type: list[build_tgt | custom_tgt]
type: list[build_tgt | custom_tgt | custom_idx]
description: |
A list of targets that this target depends on but which
are not listed in the command array (because, for example, the
Expand Down
4 changes: 2 additions & 2 deletions mesonbuild/interpreter/type_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ def _env_convertor(value: _FullEnvInitValueType) -> EnvironmentVariables:
)

# TODO: CustomTargetIndex should be supported here as well
DEPENDS_KW: KwargInfo[T.List[T.Union[BuildTarget, CustomTarget]]] = KwargInfo(
DEPENDS_KW: KwargInfo[T.List[T.Union[BuildTarget, CustomTarget, CustomTargetIndex]]] = KwargInfo(
'depends',
ContainerTypeInfo(list, (BuildTarget, CustomTarget)),
ContainerTypeInfo(list, (BuildTarget, CustomTarget, CustomTargetIndex)),
listify=True,
default=[],
)
Expand Down

0 comments on commit 2ad76d0

Please sign in to comment.