If a target's .do file disappears, don't forget to stamp it.

If a file previously was generated but now isn't (ie. its .do file
disappears), we would never re-stamp that target, and so all its
dependencies would rebuild continually.
This commit is contained in:
Avery Pennarun 2010-11-24 03:37:30 -08:00
commit 0ec15eeb09
6 changed files with 28 additions and 3 deletions

View file

@ -70,6 +70,7 @@ class BuildJob:
(dofile, basename, ext) = _find_do_file(t)
if not dofile:
if os.path.exists(t):
state.stamp(t)
return self._after2(0)
else:
err('no rule to make %r\n' % t)