diff options
| author | ruki <[email protected]> | 2025-11-03 22:51:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-07 15:01:56 +0800 |
| commit | 946da09bfffbf9193242d4d0ea39215925e6e379 (patch) | |
| tree | 4d7d1cb5bbabdb4ad8399d4bca14073fd813d2d0 | |
| parent | 574696fdcc02010adeae89146edcd82aafdc8aee (diff) | |
improve aysnc op
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index fa88ab5a4..bec329c77 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -714,7 +714,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) -- remove preprocess file local cppfile = _get_cppfile(sourcefile, objectfile) - os.tryrm(cppfile) + os.tryrm(cppfile, {async = true, detach = true}) -- use cl/stdout as errors first from vstool.iorunv() if type(errors) == "table" then @@ -777,7 +777,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) if depfile and os.isfile(depfile) then dependinfo.depfiles_format = "cl_json" dependinfo.depfiles = io.readfile(depfile) - os.tryrm(depfile) + os.tryrm(depfile, {async = true, detach = true}) elseif outdata then dependinfo.depfiles_format = "cl" dependinfo.depfiles = outdata diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index b141ac5ab..18e549124 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -1018,7 +1018,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) -- remove preprocess file local cppfile = _get_cppfile(sourcefile, objectfile) - os.tryrm(cppfile) + os.tryrm(cppfile, {async = true, detach = true}) -- parse and strip errors local lines = errors and tostring(errors):split('\n', {plain = true}) or {} |
