From 1bccfc273af2b1d579d033324bca481e15c58653 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 29 Mar 2026 22:49:37 +0800 Subject: fix const limit on lua5.5 --- xmake/modules/utils/binary/rpath.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/utils/binary/rpath.lua') diff --git a/xmake/modules/utils/binary/rpath.lua b/xmake/modules/utils/binary/rpath.lua index 33cab5a43..6ee17e98d 100644 --- a/xmake/modules/utils/binary/rpath.lua +++ b/xmake/modules/utils/binary/rpath.lua @@ -55,6 +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() 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 -- cgit v1.3.1