diff options
| author | ruki <[email protected]> | 2020-10-06 22:42:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-06 22:42:12 +0800 |
| commit | e7306f7955c3752c220189bd0773e7ed088307f8 (patch) | |
| tree | dd59400b6d02fb1128683fa45f0c71f79d1dad58 | |
| parent | 9c8e05fb5e5b1cf42eb407d3e404fabdea657481 (diff) | |
fix lastmetime for depend
| -rw-r--r-- | xmake/actions/build/kinds/binary.lua | 2 | ||||
| -rw-r--r-- | xmake/actions/build/kinds/shared.lua | 2 | ||||
| -rw-r--r-- | xmake/actions/build/kinds/static.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua index 141270044..0ef42ff49 100644 --- a/xmake/actions/build/kinds/binary.lua +++ b/xmake/actions/build/kinds/binary.lua @@ -79,7 +79,7 @@ function _do_link_target(target, opt) assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags})) end - end, {dependfile = target:dependfile(), values = depvalues, files = depfiles}) + end, {dependfile = target:dependfile(), lastmtime = os.mtime(target:targetfile()), values = depvalues, files = depfiles}) end -- on link the given target diff --git a/xmake/actions/build/kinds/shared.lua b/xmake/actions/build/kinds/shared.lua index 302f61a60..ae7b7d523 100644 --- a/xmake/actions/build/kinds/shared.lua +++ b/xmake/actions/build/kinds/shared.lua @@ -92,7 +92,7 @@ function _do_link_target(target, opt) assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags})) end - end, {dependfile = target:dependfile(), values = depvalues, files = depfiles}) + end, {dependfile = target:dependfile(), lastmtime = os.mtime(target:targetfile()), values = depvalues, files = depfiles}) end -- on link the given target diff --git a/xmake/actions/build/kinds/static.lua b/xmake/actions/build/kinds/static.lua index ad8b2ac55..b6c4f254d 100644 --- a/xmake/actions/build/kinds/static.lua +++ b/xmake/actions/build/kinds/static.lua @@ -88,7 +88,7 @@ function _do_link_target(target, opt) assert(linkinst:link(objectfiles, targetfile, {linkflags = linkflags})) end - end, {dependfile = target:dependfile(), values = depvalues, files = depfiles}) + end, {dependfile = target:dependfile(), lastmtime = os.mtime(target:targetfile()), values = depvalues, files = depfiles}) end -- on link the given target |
