diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-06-03 09:34:03 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-06-08 23:19:09 +0300 |
commit | c3ef52311af84d100be220ae8a9ed58e50100808 (patch) | |
tree | c53c518b4ec66bd1d31240fd86e63a874bc9a4b7 /mesonbuild/build.py | |
parent | c621ab22519ea8f0778a8907196feab619b93c47 (diff) | |
download | meson-c3ef52311af84d100be220ae8a9ed58e50100808.zip meson-c3ef52311af84d100be220ae8a9ed58e50100808.tar.gz meson-c3ef52311af84d100be220ae8a9ed58e50100808.tar.bz2 |
build: fix types added in CustomTarget.get_target_dependencies
Because everything except ExternalProgram in CustomTarget.sources is a
valid dependency
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 5b6f5f0..bad9f54 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2491,10 +2491,10 @@ class CustomTarget(Target, CommandBase): deps.extend(self.dependencies) deps.extend(self.extra_depends) for c in self.sources: - if isinstance(c, (BuildTarget, CustomTarget)): - deps.append(c) - elif isinstance(c, CustomTargetIndex): + if isinstance(c, CustomTargetIndex): deps.append(c.target) + elif not isinstance(c, programs.ExternalProgram): + deps.append(c) return deps def get_transitive_build_target_deps(self) -> T.Set[T.Union[BuildTarget, 'CustomTarget']]: |