diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-03-15 22:25:09 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-03-19 22:03:14 +0200 |
commit | aff7fc89c35ce9cdc76657dec2d7e3c0027f8791 (patch) | |
tree | 534af9035b903d17454cd6d7edb42cf5cb1f3060 | |
parent | 321774d715f47b3bd3a2e240e0a190dfad7bd22d (diff) | |
download | meson-aff7fc89c35ce9cdc76657dec2d7e3c0027f8791.zip meson-aff7fc89c35ce9cdc76657dec2d7e3c0027f8791.tar.gz meson-aff7fc89c35ce9cdc76657dec2d7e3c0027f8791.tar.bz2 |
Generators can depend on custom targets as well as build targets.
-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 61894fe..60bcf81 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1369,7 +1369,7 @@ class Generator: if 'depends' in kwargs: depends = unholder(listify(kwargs['depends'])) for d in depends: - if not isinstance(d, BuildTarget): + if not (isinstance(d, (BuildTarget, CustomTarget))): raise InvalidArguments('Depends entries must be build targets.') self.depends.append(d) |