summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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