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:
parent
c113442738
commit
c26f8c12c2
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user