doublestatic: fix dependencies if two files depend on one non-generated file.

If a and b both depend on c, and c is a static (non-generated) file that has
changed since the last successful build of a and b, we would try to redo
a, but would forget to redo b.  Now it does both.
This commit is contained in:
Avery Pennarun 2010-11-24 04:52:17 -08:00
commit f3413c0f7c
9 changed files with 31 additions and 8 deletions

View file

@ -127,6 +127,14 @@ def isbuilt(t):
return True
# stamps the given input file, but only considers it to have been "built" if its
# mtime has changed. This is useful for static (non-generated) files.
def stamp_and_maybe_built(t):
if stamped(t) != os.stat(t).st_mtime:
built(t)
stamp(t)
def mark(t):
try:
open(_sname('mark', t), 'w').close()