diff options
| author | ruki <[email protected]> | 2020-12-15 00:55:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-15 00:55:48 +0800 |
| commit | dcdd8e5712a863fe225539a09671a7a6a73d60b6 (patch) | |
| tree | a111b2e3e57421a0b9c6bb99b267e4be67381eae | |
| parent | 36c64e2b54268d7dfb4d59456996ae55abcb7372 (diff) | |
fix find_lib
| -rw-r--r-- | xmake/modules/detect/tools/find_lib.lua | 4 |
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 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}) |
