diff options
| author | ruki <[email protected]> | 2024-07-16 23:55:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-16 23:55:27 +0800 |
| commit | 4cd523c8196f631cadda84f4a06747758e3e8fe9 (patch) | |
| tree | 2738e834f0de407f6681e3bc7e8d4983e185a38a /xmake/modules/utils/binary/deplibs.lua | |
| parent | 702a14f8db2bc2c215952398384192e599e71cf4 (diff) | |
remove rpath on macosx
Diffstat (limited to 'xmake/modules/utils/binary/deplibs.lua')
| -rw-r--r-- | xmake/modules/utils/binary/deplibs.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua index 36e54d4af..146e79504 100644 --- a/xmake/modules/utils/binary/deplibs.lua +++ b/xmake/modules/utils/binary/deplibs.lua @@ -205,19 +205,19 @@ end function main(binaryfile, opt) opt = opt or {} - local dumpers = { + local ops = { _get_all_depends_by_objdump, _get_all_depends_by_readelf } if is_host("windows") then - table.insert(dumpers, 2, _get_all_depends_by_dumpbin) + table.insert(ops, 2, _get_all_depends_by_dumpbin) elseif is_host("linux", "bsd") then - table.insert(dumpers, 1, _get_all_depends_by_ldd) + table.insert(ops, 1, _get_all_depends_by_ldd) elseif is_host("macosx") then - table.insert(dumpers, 1, _get_all_depends_by_otool) + table.insert(ops, 1, _get_all_depends_by_otool) end - for _, dump in ipairs(dumpers) do - local depends = dump(binaryfile, opt) + for _, op in ipairs(ops) do + local depends = op(binaryfile, opt) if depends then return depends end |
