diff options
| author | ruki <[email protected]> | 2020-05-15 00:20:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-14 20:04:19 +0800 |
| commit | 6dc2e03e738d3bd302cb7b33f47a7f2ce770f8f6 (patch) | |
| tree | d1d505c925d66901d3c12520e6fd2792c942fc67 /xmake/modules/core/project/depend.lua | |
| parent | 82fe3d23b2ee9199a540326d8382fea212b23cfa (diff) | |
fix deps
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 |
