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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/tools/tools.lua b/xmake/scripts/tools/tools.lua
index e29a2718b..af095618e 100644
--- a/xmake/scripts/tools/tools.lua
+++ b/xmake/scripts/tools/tools.lua
@@ -40,7 +40,7 @@ function tools._match(name, toolname)
if name:find("^" .. toolname .. "$") then return true end
-- contains it? ok
- if name:find(toolname, true) then return true end
+ if name:find(toolname, 1, true) then return true end
-- not matched
return false