diff options
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/tool/tool.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index 0bbcd9e09..94a11f7ef 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -79,6 +79,9 @@ function tool._find(root, name) -- remove arguments: -xxx or --xxx name = (name:gsub("%s%-+%w+", " ")) + -- remove suffix: ".xxx" + name = (name:gsub("%.%w+", "")) + -- get all tool files local file_ok = nil local score_maxn = 0 @@ -205,7 +208,7 @@ function tool.load(kind) if not shellname then return nil, string.format("cannot get tool for %s", kind) end - + -- load it return tool._load(shellname) end |
