diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-03-14 16:01:59 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-03-14 22:03:46 -0400 |
| commit | ef5da765af7c5687228ed6e77a19d20bc474c4a4 (patch) | |
| tree | 4b58a861831f94ceaca516450e5546d54367ffb9 | |
| parent | 979250653665728c0a69cb82df250e2a0a0ffdfd (diff) | |
| download | meson-ef5da765af7c5687228ed6e77a19d20bc474c4a4.tar.gz | |
add typename to AliasTarget
It will allow to distinguish AliasTarget from RunTarget in introspection
files (e.g. meson-info/intro-targets.json).
| -rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 27c17da94..7d1f1d0be 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2756,6 +2756,9 @@ class RunTarget(Target, CommandBase): return "@run" class AliasTarget(RunTarget): + + typename = 'alias' + def __init__(self, name: str, dependencies: T.Sequence['Target'], subdir: str, subproject: str, environment: environment.Environment): super().__init__(name, [], dependencies, subdir, subproject, environment) |
