Generators can depend on custom targets as well as build targets.

pull/6803/head
Jussi Pakkanen 5 years ago
parent 321774d715
commit aff7fc89c3
  1. 2
      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)

Loading…
Cancel
Save