From c9d2673c417e502b43c9ae2cb73f1d2c4fadca2c Mon Sep 17 00:00:00 2001 From: xiaozhu1337 <50901869+xiaozhu1337@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:44:16 +0800 Subject: Update find_toolname.lua --- xmake/modules/lib/detect/find_toolname.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/lib/detect/find_toolname.lua b/xmake/modules/lib/detect/find_toolname.lua index 0b7ad1a9b..5f15cfb2b 100644 --- a/xmake/modules/lib/detect/find_toolname.lua +++ b/xmake/modules/lib/detect/find_toolname.lua @@ -27,7 +27,7 @@ import("core.sandbox.module") -- we just remove some known extension, because we need to reverse others, e.g. ld.lld, ld64.lld -- function _remove_suffix(name) - local exts = hashset.of("exe", "bat", "sh", "ps1", "ps") + local exts = hashset.of("exe", "bat", "cmd", "sh", "ps1", "ps") name = name:gsub("%.(%w+)", function (ext) ext = ext:lower() if exts:has(ext) then -- cgit v1.3.1