diff options
| author | xiaozhu1337 <[email protected]> | 2026-04-22 17:44:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-22 17:44:16 +0800 |
| commit | c9d2673c417e502b43c9ae2cb73f1d2c4fadca2c (patch) | |
| tree | 72782e1c681ac28780a29837a99ffb26d245a5de | |
| parent | 3dfae3707870262645edfe97554b33956c8e7be6 (diff) | |
Update find_toolname.lua
| -rw-r--r-- | xmake/modules/lib/detect/find_toolname.lua | 2 |
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 |
