From 574696fdcc02010adeae89146edcd82aafdc8aee Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 3 Nov 2025 22:49:40 +0800 Subject: improve vstool --- xmake/modules/private/tools/vstool.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmake/modules/private/tools/vstool.lua') 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 -- cgit v1.3.1