From 43a4e2c277d003251f476e8aa5b2f0efbe2f3ae7 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Jun 2026 21:00:07 +0800 Subject: improve to check multiple targets --- xmake/modules/private/action/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/private/action/utils.lua') diff --git a/xmake/modules/private/action/utils.lua b/xmake/modules/private/action/utils.lua index 24a5e3a46..39045d204 100644 --- a/xmake/modules/private/action/utils.lua +++ b/xmake/modules/private/action/utils.lua @@ -74,9 +74,9 @@ end function get_targets(targetnames, opt) opt = opt or {} - -- select the explicitly given targets + -- select the explicitly given targets (table.wrap to always get a list back) if type(targetnames) == "table" or (type(targetnames) == "string" and not targetnames:startswith("__")) then - return assert(check_targetnames(targetnames)) + return assert(check_targetnames(table.wrap(targetnames))) end -- otherwise select the default/all/group targets -- cgit v1.3.1