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/lib/detect/find_toolname.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/lib/detect/find_toolname.lua') diff --git a/xmake/modules/lib/detect/find_toolname.lua b/xmake/modules/lib/detect/find_toolname.lua index 37f468c73..0b7ad1a9b 100644 --- a/xmake/modules/lib/detect/find_toolname.lua +++ b/xmake/modules/lib/detect/find_toolname.lua @@ -49,6 +49,7 @@ function _find_with_whole_name(program) local partnames = {} local names = path.filename(program):lower():split("%s") for _, name in ipairs(names) do + local name = name -- remove suffix: ".exe", e.g. "zig.exe cc" name = _remove_suffix(name) -- "zig c++" -> zig_cxx -- cgit v1.3.1