Issue 1124

This commit is contained in:
Thomas Nagy 2012-04-07 09:59:05 +02:00
parent 81a2e68859
commit 19f6fb2595
1 changed files with 5 additions and 0 deletions

View File

@ -709,6 +709,11 @@ class BuildContext(Context.Context):
tg.post()
else:
ln = self.launch_node()
if ln.is_child_of(self.bldnode):
Logs.warn('Building from the build directory, forcing --targets=*')
elif not ln.is_child_of(self.srcnode):
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.cur]:
try:
f = tg.post