diff options
| author | ruki <[email protected]> | 2026-02-07 00:56:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-07 00:56:28 +0800 |
| commit | 7cce7d28b459173ca174d7a5e4391d9194291a69 (patch) | |
| tree | cdba08fb6fdccc02931f903922809e9ef16776e7 | |
| parent | 791292f2ee65a4ca8566c3e7a38cbcbf965ddd08 (diff) | |
improve missing dlls
| -rw-r--r-- | xmake/core/base/process.lua | 10 |
1 files changed, 7 insertions, 3 deletions
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 |
