2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Accept task objects in Build.add_to_group for compatibility reasons

This commit is contained in:
Thomas Nagy 2017-09-21 22:02:38 +02:00
parent c113442738
commit c26f8c12c2
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -759,8 +759,13 @@ class BuildContext(Context.Context):
Logs.warn('CWD %s is not under %s, forcing --targets=* (run distclean?)', ln.abspath(), self.srcnode.abspath())
ln = self.srcnode
for tg in self.groups[self.current_group]:
if tg.path.is_child_of(ln):
tgpost(tg)
try:
p = tg.path
except AttributeError:
pass
else:
if p.is_child_of(ln):
tgpost(tg)
def get_tasks_group(self, idx):
"""