summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-26 00:49:15 +0800
committerruki <[email protected]>2025-07-26 00:49:15 +0800
commitb1080f1934d960f7b48b26fdee5f5bfaed96170a (patch)
tree67b0df437b959ecbd8f8eb092a7b447e2ca81908
parente3759b8bd56d614b49d95256c04c7d093100d64a (diff)
improve dumpbin
-rw-r--r--xmake/modules/utils/binary/deplibs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua
index 15ca0b12b..dbfdd8a66 100644
--- a/xmake/modules/utils/binary/deplibs.lua
+++ b/xmake/modules/utils/binary/deplibs.lua
@@ -40,7 +40,7 @@ function _get_depends_by_dumpbin(binaryfile, opt)
if result then
for _, line in ipairs(result:split("\n")) do
line = line:trim()
- if line:endswith(".dll") then
+ if not line:startswith("Dump of file") and line:endswith(".dll") then
depends = depends or {}
table.insert(depends, line)
end