Commit 6cd5d73c authored by machenbach's avatar machenbach Committed by Commit bot

[build] Fix race in v8gen

BUG=chromium:648583
NOTRY=true

Review-Url: https://codereview.chromium.org/2365573002
Cr-Commit-Position: refs/heads/master@{#39626}
parent 78b048c0
......@@ -265,6 +265,13 @@ class GenerateGnArgs(object):
f.write('\n# Additional %s args:\n' % type)
f.write(more_gn_args)
f.write('\n')
# Artificially increment modification time as our modifications happen too
# fast. This makes sure that gn is properly rebuilding the ninja files.
mtime = os.path.getmtime(gn_args_path) + 1
with open(gn_args_path, 'aw'):
os.utime(gn_args_path, (mtime, mtime))
return True
def main(self):
......
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