summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/find_tool.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/lib/detect/find_tool.lua')
-rw-r--r--xmake/modules/lib/detect/find_tool.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/find_tool.lua b/xmake/modules/lib/detect/find_tool.lua
index 3cc07b071..58289b0dc 100644
--- a/xmake/modules/lib/detect/find_tool.lua
+++ b/xmake/modules/lib/detect/find_tool.lua
@@ -34,8 +34,8 @@ function _find_from_modules(name, opt)
if os.isfile(path.join(os.programdir(), "modules", "detect", "tools", "find_" .. name .. ".lua")) then
local find_tool = import("detect.tools.find_" .. name)
if find_tool then
- local program, version = find_tool(opt)
- return {name = name, program = program, version = version}
+ local program, version, toolname = find_tool(opt)
+ return {name = toolname or name, program = program, version = version}
end
end
end