diff options
| author | ruki <[email protected]> | 2023-01-06 00:42:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-06 00:42:29 +0800 |
| commit | 93935417a2c56c3ddc9ea715939441fe41f792f2 (patch) | |
| tree | a0d1b5d17498b2d6a345b5833078d0a6d59eaf04 /xmake/rules/c++/modules/xmake.lua | |
| parent | af961bd8198ca01c3ad30fd73aebded54b28e1a7 (diff) | |
improve clean files for modules
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 5 |
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 |
