summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-30 14:11:00 +0800
committerruki <[email protected]>2016-06-30 14:11:00 +0800
commit8732e635f54ecc9bb5722112a2245d55ef4bd2ce (patch)
treef2a0efa3a6d2d300dc06ff97014db0d1abf47171 /xmake/core/tool/tool.lua
parent2ccf6b72c850ce1ed865426fd4e28130ee04f461 (diff)
fix check g++ toolchains failed
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 90110fc71..209673e6e 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -77,7 +77,7 @@ function tool._find(root, name)
name = (name:gsub("%s%-+%w+", " "))
-- get the last name by ' ': xxx xxx toolname
- local names = name:split("%s+")
+ local names = name:split("%s")
if #names > 0 then
name = names[#names]
end