diff options
| -rw-r--r-- | xmake/modules/lib/detect/check_cxsnippets.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/private/tools/vstool.lua | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua index ad0310082..ab767faba 100644 --- a/xmake/modules/lib/detect/check_cxsnippets.lua +++ b/xmake/modules/lib/detect/check_cxsnippets.lua @@ -273,8 +273,8 @@ function main(snippets, opt) } -- remove some files - os.tryrm(objectfile) - os.tryrm(binaryfile) + os.tryrm(objectfile, {async = true, detach = true}) + os.tryrm(binaryfile, {async = true, detach = true}) -- trace if opt.verbose or option.get("verbose") or option.get("diagnosis") then diff --git a/xmake/modules/private/tools/vstool.lua b/xmake/modules/private/tools/vstool.lua index c4b22883d..f0e2c575b 100644 --- a/xmake/modules/private/tools/vstool.lua +++ b/xmake/modules/private/tools/vstool.lua @@ -77,8 +77,8 @@ function runv(program, argv, opt) end -- remove the files - os.tryrm(outpath) - os.tryrm(errpath) + os.tryrm(outpath, {async = true, detach = true}) + os.tryrm(errpath, {async = true, detach = true}) -- raise errors os.raise({errors = errors, stderr = errdata, stdout = outdata}) @@ -122,8 +122,8 @@ function iorunv(program, argv, opt) local errdata = os.isfile(errpath) and io.readfile(errpath) or nil -- remove the temporary output and error file - os.tryrm(outpath) - os.tryrm(errpath) + os.tryrm(outpath, {async = true, detach = true}) + os.tryrm(errpath, {async = true, detach = true}) -- failed? if ok ~= 0 then |
