From dcdd8e5712a863fe225539a09671a7a6a73d60b6 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 15 Dec 2020 00:55:48 +0800 Subject: fix find_lib --- xmake/modules/detect/tools/find_lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/detect/tools/find_lib.lua b/xmake/modules/detect/tools/find_lib.lua index 741f6a091..b01960e25 100644 --- a/xmake/modules/detect/tools/find_lib.lua +++ b/xmake/modules/detect/tools/find_lib.lua @@ -51,8 +51,8 @@ function main(opt) io.writefile(sourcefile, "int test(void)\n{return 0;}") -- check it - local cl = assert(find_tool("cl", opt)) - local link = assert(find_tool("link", opt)) + local cl = assert(find_tool("cl", {envs = opt.envs})) + local link = assert(find_tool("link", {envs = opt.envs})) os.runv(cl.program, {"-c", "-Fo" .. objectfile, sourcefile}, {envs = opt.envs}) os.runv(link.program, {"-lib", "-out:" .. libraryfile, objectfile}, {envs = opt.envs}) verinfo = os.iorunv(program, {"-list", libraryfile}, {envs = opt.envs}) -- cgit v1.3.1