summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-06 00:42:29 +0800
committerruki <[email protected]>2023-01-06 00:42:29 +0800
commit93935417a2c56c3ddc9ea715939441fe41f792f2 (patch)
treea0d1b5d17498b2d6a345b5833078d0a6d59eaf04 /xmake/rules/c++/modules/xmake.lua
parentaf961bd8198ca01c3ad30fd73aebded54b28e1a7 (diff)
improve clean files for modules
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 8d48cb0bf..315385824 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -121,9 +121,10 @@ rule("c++.build.modules.builder")
after_clean(function (target)
import("core.base.option")
import("modules_support.common")
- os.tryrm(common.modules_cachedir(target))
+ import("private.action.clean.remove_files")
+ remove_files(common.modules_cachedir(target))
if option.get("all") then
- os.tryrm(common.stlmodules_cachedir(target))
+ remove_files(common.stlmodules_cachedir(target))
common.localcache():clear()
common.localcache():save()
end