summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/tools.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-16 11:38:50 +0800
committerruki <[email protected]>2015-06-16 11:38:50 +0800
commitb02e5fc9da96945b0be2452bdbbf5b9801e68b69 (patch)
tree5e0826167d0b63eea1721fbb17f4fca89525bde1 /xmake/scripts/tools/tools.lua
parent60bd22effb5664fefafabe69f5023301b6970e7b (diff)
modify the compiler and linker command
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