summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tool/find_link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tool/find_link.lua')
-rw-r--r--xmake/modules/detect/tool/find_link.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tool/find_link.lua b/xmake/modules/detect/tool/find_link.lua
index 209fa1300..d30fe6fbe 100644
--- a/xmake/modules/detect/tool/find_link.lua
+++ b/xmake/modules/detect/tool/find_link.lua
@@ -45,7 +45,7 @@ function main(opt)
-- find program
local verinfo = nil
- local program = find_program(opt.program or "link.exe", {}, function (program)
+ local program = find_program(opt.program or "link.exe", opt.pathes, opt.check or function (program)
-- make an stub source file
local binaryfile = os.tmpfile() .. ".exe"