Commit c30ebf9e authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[2157] change need_generate condition

regenerate the file if .pre file is updated
parent 7dd1d39f
......@@ -34,7 +34,9 @@ def need_generate(filepath, mtime):
To avoid unnecessary compilation, we skip (re)generating the file when
the file already exists and newer than the base file.
if os.path.exists(filepath) and os.path.getmtime(filepath) > mtime:
if os.path.exists(filepath) and\
(os.path.getmtime(filepath) > mtime or
os.path.getmtime(filepath) > os.path.getmtime(filepath+pre_suffix)):
return False
return True
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