Commit b1cc789c by Geoff Lang Committed by Commit Bot

Finish populating the new_hashes map after finding a dirty input.

any_input_dirty would return early when finding a dirty input and not finish filling the new_hashes map. This would require multiple runs of the code generation script to fully generate all the outputs. BUG=angleproject:2695 Change-Id: Ie62190efe2765df432b0a535fb8d33ed2ffa66a7 Reviewed-on: https://chromium-review.googlesource.com/1127439 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 9a257801
......@@ -168,12 +168,13 @@ def md5(fname):
return hash_md5.hexdigest()
def any_input_dirty(name, inputs):
found_dirty_input = False
for finput in inputs:
key = name + ":" + finput
new_hashes[key] = md5(finput)
if (not key in old_hashes) or (old_hashes[key] != new_hashes[key]):
return True
return False
found_dirty_input = True
return found_dirty_input
os.chdir(script_dir)
old_hashes = json.load(open(hash_fname))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment