diff options
| author | ruki <[email protected]> | 2020-04-03 23:22:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-03 14:20:20 +0800 |
| commit | f6a13439dd3052f9f88b012acb50bd4c85cce77d (patch) | |
| tree | c39f02a97207a2d5b047d0fadc867854813c6ee7 | |
| parent | b49cfd13fc19b42ecce4ae9077e3ba51a46a5fcb (diff) | |
improve to dependfile for extracting symbols
| -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) |
