summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-20 00:51:18 +0800
committerruki <[email protected]>2022-05-20 00:51:18 +0800
commitaf2981b54c3334819b1aaa7666a5605dd70e329a (patch)
treea112c57a6fc07f029ea11c0a6ee3846d84e4de29
parent9b58179ce2a9f0957b7eddad677bb63993f98d49 (diff)
improve cl
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 75d9efed7..ca66ede29 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -618,7 +618,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
if dependinfo then
if depfile and os.isfile(depfile) then
dependinfo.depfiles_cl_json = io.readfile(depfile)
- os.rm(depfile)
+ os.tryrm(depfile)
elseif outdata then
dependinfo.depfiles_cl = outdata
end