diff options
Diffstat (limited to 'xmake/modules/core/project/depend.lua')
| -rw-r--r-- | xmake/modules/core/project/depend.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/project/depend.lua b/xmake/modules/core/project/depend.lua index 84a8b99d9..8863e2f2e 100644 --- a/xmake/modules/core/project/depend.lua +++ b/xmake/modules/core/project/depend.lua @@ -104,8 +104,8 @@ function is_changed(dependinfo, opt) local mtime = files_mtime[file] or os.mtime(file) files_mtime[file] = mtime - -- source and header files have been changed? - if mtime == nil or mtime > lastmtime then + -- source and header files have been changed or not exists? + if mtime == 0 or mtime > lastmtime then return true end end |
