From 7cce7d28b459173ca174d7a5e4391d9194291a69 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 7 Feb 2026 00:56:28 +0800 Subject: improve missing dlls --- xmake/core/base/process.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xmake/core/base/process.lua') diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua index bea469346..031f02bb4 100644 --- a/xmake/core/base/process.lua +++ b/xmake/core/base/process.lua @@ -281,8 +281,12 @@ function process._get_missing_dlls(program) -- find missing dlls local missing = {} - local binutils = require("base/binutils") - local imports = binutils.deplibs(program) or {} + local sandbox_module = require("sandbox/modules/import/core/sandbox/module") + local get_depend_libraries = sandbox_module.import("utils.binary.deplibs", {anonymous = true}) + local imports = get_depend_libraries(program, {recursive = true}) or {} + for i, dll in ipairs(imports) do + imports[i] = path.filename(dll) + end for _, dll in ipairs(imports) do local found = false for _, p in ipairs(paths) do @@ -292,7 +296,7 @@ function process._get_missing_dlls(program) end end if not found then - table.insert(missing, dll) + table.insert(missing, dll) end end return missing -- cgit v1.3.1