From 80f6dba52aa17a4900a51f76da7f05cf3d5fa73c Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Jun 2026 00:55:44 +0800 Subject: check multiple targets --- xmake/actions/clean/main.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xmake/actions/clean/main.lua') diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua index a85fca742..ba30ccb77 100644 --- a/xmake/actions/clean/main.lua +++ b/xmake/actions/clean/main.lua @@ -29,7 +29,7 @@ import("core.platform.platform") import("private.action.clean.remove_files") import("target.action.clean", {alias = "_do_clean_target"}) import("private.service.remote_build.action", {alias = "remote_build_action"}) -import("private.detect.check_targetname") +import("private.detect.check_targetnames") import("private.action.utils", {alias = "action_utils"}) -- on clean target @@ -107,10 +107,7 @@ end -- clean targets function _clean(targetnames) if targetnames and #targetnames > 0 then - for _, targetname in ipairs(targetnames) do - local target = assert(check_targetname(targetname)) - _clean_target(target) - end + _clean_targets(assert(check_targetnames(targetnames))) else _clean_targets(project.ordertargets()) end -- cgit v1.3.1