summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiaozhu1337 <[email protected]>2026-04-22 17:44:16 +0800
committerGitHub <[email protected]>2026-04-22 17:44:16 +0800
commitc9d2673c417e502b43c9ae2cb73f1d2c4fadca2c (patch)
tree72782e1c681ac28780a29837a99ffb26d245a5de
parent3dfae3707870262645edfe97554b33956c8e7be6 (diff)
Update find_toolname.lua
-rw-r--r--xmake/modules/lib/detect/find_toolname.lua2
1 files changed, 1 insertions, 1 deletions
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