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:
parent
9fc5ae1b56
commit
f3413c0f7c
9 changed files with 31 additions and 8 deletions
8
state.py
8
state.py
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue