diff options
| -rw-r--r-- | xmake/rules/utils/symbols/xmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/utils/symbols/xmake.lua b/xmake/rules/utils/symbols/xmake.lua index e6c9ecfb8..971254b59 100644 --- a/xmake/rules/utils/symbols/xmake.lua +++ b/xmake/rules/utils/symbols/xmake.lua @@ -114,7 +114,8 @@ rule("utils.symbols.extract") os.vrunv(strip, strip_argv, {dryrun = dryrun}) -- update files and values to the dependent file - dependinfo.files = {targetfile} + -- @note we use dependfile(targetfile) instead of targetfile to ensure it's mtime less than mtime(symbolfile), because targetfile will be changed after stripping + dependinfo.files = {target:dependfile(targetfile)} depend.save(dependinfo, dependfile) end) |
