summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/tools.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/tools/tools.lua')
-rw-r--r--xmake/scripts/tools/tools.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/scripts/tools/tools.lua b/xmake/scripts/tools/tools.lua
index 862397704..8600a296f 100644
--- a/xmake/scripts/tools/tools.lua
+++ b/xmake/scripts/tools/tools.lua
@@ -35,7 +35,10 @@ function tools._match(name, toolname)
-- match full? ok
if name == toolname then return 100 end
-
+
+ -- match the last word? ok
+ if name:find(toolname .. "$") then return 80 end
+
-- match the partial word? ok
if name:find("%-" .. toolname) then return 60 end