summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-28 20:15:09 +0800
committerruki <[email protected]>2016-04-28 20:15:09 +0800
commit0d9ea7b88dc9cef68c4823bd671fca17d0e4fccf (patch)
tree900fb5b15553e6ad60a28505a20aeec291ee9c0e /xmake/core/tool/tool.lua
parent3571f65949d94560efbb2ae26703e0f5ac8a5f13 (diff)
fix trace for running nmake
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 0bbcd9e09..94a11f7ef 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -79,6 +79,9 @@ function tool._find(root, name)
-- remove arguments: -xxx or --xxx
name = (name:gsub("%s%-+%w+", " "))
+ -- remove suffix: ".xxx"
+ name = (name:gsub("%.%w+", ""))
+
-- get all tool files
local file_ok = nil
local score_maxn = 0
@@ -205,7 +208,7 @@ function tool.load(kind)
if not shellname then
return nil, string.format("cannot get tool for %s", kind)
end
-
+
-- load it
return tool._load(shellname)
end