diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-04 14:21:39 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-06 19:20:32 +0200 |
commit | fd66692f73efb80783172b9d346ae4a5b6b6fa6d (patch) | |
tree | 9c60282227f18eab18e48b453b34a5b875dc080c /mesonbuild/build.py | |
parent | 86feb843f4c196b366ec317c5212d404df34191e (diff) | |
download | meson-fd66692f73efb80783172b9d346ae4a5b6b6fa6d.zip meson-fd66692f73efb80783172b9d346ae4a5b6b6fa6d.tar.gz meson-fd66692f73efb80783172b9d346ae4a5b6b6fa6d.tar.bz2 |
Fix a problem when anyone actually tries to use a non-found dependency
Fix BuildTarget.add_deps() to handle class Dependency
Extend test case to cover uses of the not-found dependency object
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 4a35bec..8a2e716 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -839,7 +839,7 @@ This will become a hard error in a future Meson release.''') self.external_deps.append(extpart) # Deps of deps. self.add_deps(dep.ext_deps) - elif isinstance(dep, dependencies.ExternalDependency): + elif isinstance(dep, dependencies.Dependency): self.external_deps.append(dep) self.process_sourcelist(dep.get_sources()) elif isinstance(dep, BuildTarget): |