From 93935417a2c56c3ddc9ea715939441fe41f792f2 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 6 Jan 2023 00:42:29 +0800 Subject: improve clean files for modules --- xmake/rules/c++/modules/xmake.lua | 5 +++-- 1 file 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 -- cgit v1.3.1