summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/binary/rpath.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-29 22:55:28 +0800
committerruki <[email protected]>2026-03-29 22:55:28 +0800
commit8841ed9f7b427896f042abcfb3537dd731f6a923 (patch)
treed2cb01d00f1873851e86199deef19dda20c43702 /xmake/modules/utils/binary/rpath.lua
parent1bccfc273af2b1d579d033324bca481e15c58653 (diff)
improve const limit codes
Diffstat (limited to 'xmake/modules/utils/binary/rpath.lua')
-rw-r--r--xmake/modules/utils/binary/rpath.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/utils/binary/rpath.lua b/xmake/modules/utils/binary/rpath.lua
index 6ee17e98d..2e74443ad 100644
--- a/xmake/modules/utils/binary/rpath.lua
+++ b/xmake/modules/utils/binary/rpath.lua
@@ -55,8 +55,7 @@ function _get_rpath_list_by_objdump(binaryfile, opt)
if result then
local cmd = false
for _, line in ipairs(result:split("\n")) do
- local line = line
- line = line:trim()
+ local line = line:trim()
if plat == "macosx" or plat == "iphoneos" or plat == "appletvos" or plat == "watchos" then
if not cmd and line:find("cmd LC_RPATH", 1, true) then
cmd = true