From 4d1aafedc90c94291d347b3f968c1d8736395382 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 18 May 2022 22:30:48 +0800 Subject: [PATCH] clean build cache --- xmake/modules/target/action/clean/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua index 8cbc9599c57..74ebf39bb5b 100644 --- a/xmake/modules/target/action/clean/main.lua +++ b/xmake/modules/target/action/clean/main.lua @@ -21,6 +21,7 @@ -- imports import("core.base.option") import("private.action.clean.remove_files") +import("private.cache.build_cache") -- the builtin clean main entry function main(target) @@ -61,6 +62,9 @@ function main(target) -- remove all autogen files for each platform remove_files(target:autogendir({root = true})) + + -- clean build cache + build_cache.clean() else -- remove dependent files for the current platform