summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-12-15 00:52:26 +0800
committerruki <[email protected]>2020-12-15 00:52:26 +0800
commit36c64e2b54268d7dfb4d59456996ae55abcb7372 (patch)
treec9e07aa8e05d899d2b5fa97b73711b44d1ee80d3
parent99a7d26748e8afa84fa7123344f6aa4d24a1be93 (diff)
fix find_lib
-rw-r--r--xmake/modules/detect/tools/find_lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_lib.lua b/xmake/modules/detect/tools/find_lib.lua
index f3c5806ee..741f6a091 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"))
- local link = assert(find_tool("link"))
+ local cl = assert(find_tool("cl", opt))
+ local link = assert(find_tool("link", opt))
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})