summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools/find_lib.lua')
-rw-r--r--xmake/modules/detect/tools/find_lib.lua6
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)