diff options
| author | ruki <[email protected]> | 2026-06-18 21:00:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-06-18 21:00:07 +0800 |
| commit | 43a4e2c277d003251f476e8aa5b2f0efbe2f3ae7 (patch) | |
| tree | 140c4f0a1376cfde9cef98b33dd66361183661c6 /xmake/modules/private/action/utils.lua | |
| parent | 80f6dba52aa17a4900a51f76da7f05cf3d5fa73c (diff) | |
improve to check multiple targets
Diffstat (limited to 'xmake/modules/private/action/utils.lua')
| -rw-r--r-- | xmake/modules/private/action/utils.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
