diff options
| author | ruki <[email protected]> | 2020-06-20 12:38:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-20 12:38:44 +0800 |
| commit | 281e06a020f7704fe998be52a6ecc2711cfd4fb7 (patch) | |
| tree | 7296f3837d062dcdf6031b821dc6ea0ff1c8986d /xmake/modules/detect/tools/find_lib.lua | |
| parent | 01dd21d4f3bccda1ff18ad1213b959feeaae37eb (diff) | |
improve to find cl/link
Diffstat (limited to 'xmake/modules/detect/tools/find_lib.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_lib.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/detect/tools/find_lib.lua b/xmake/modules/detect/tools/find_lib.lua index 9c5b4be74..2b65c978b 100644 --- a/xmake/modules/detect/tools/find_lib.lua +++ b/xmake/modules/detect/tools/find_lib.lua @@ -50,9 +50,9 @@ function main(opt) io.writefile(sourcefile, "int test(void)\n{return 0;}") -- check it - os.run("cl -c -Fo%s %s", objectfile, sourcefile) - os.run("link -lib -out:%s %s", libraryfile, objectfile) - verinfo = os.iorun("%s -list %s", program, libraryfile) + os.runv("cl", {"-c", "-Fo" .. objectfile, sourcefile}, {envs = opt.envs}) + os.runv("link", {"-lib", "-out:" .. libraryfile, objectfile}, {envs = opt.envs}) + verinfo = os.iorunv(program, {"-list", libraryfile}, {envs = opt.envs}) -- remove files os.rm(objectfile) |
