summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-28 11:14:04 +0800
committerruki <[email protected]>2016-04-28 11:14:04 +0800
commit3571f65949d94560efbb2ae26703e0f5ac8a5f13 (patch)
tree270eccf3ff12e44673fde8bcb0bc5c5a0dc93682 /xmake/core/tool/tool.lua
parent52eb26701de17e800ae69cc495ac665a39d5d1dd (diff)
add link and nmake tools for windows
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 2c8ef6ee0..0bbcd9e09 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -76,6 +76,9 @@ function tool._find(root, name)
-- make the lower name
name = name:lower()
+ -- remove arguments: -xxx or --xxx
+ name = (name:gsub("%s%-+%w+", " "))
+
-- get all tool files
local file_ok = nil
local score_maxn = 0