diff options
| author | ruki <[email protected]> | 2023-10-07 10:21:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-07 10:21:33 +0800 |
| commit | ebb301cf17c2aa25b1f698ce2e5bd2eb753a9bc5 (patch) | |
| tree | ea5f1de7c1a6c79339e3c1bdf43ae7418588acf7 /xmake/actions/build/check.lua | |
| parent | c12127b37c2d967a928cb039187d1ea65d958803 (diff) | |
auto build targets for tests
Diffstat (limited to 'xmake/actions/build/check.lua')
| -rw-r--r-- | xmake/actions/build/check.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/actions/build/check.lua b/xmake/actions/build/check.lua index e26e4f0d0..f468acfb1 100644 --- a/xmake/actions/build/check.lua +++ b/xmake/actions/build/check.lua @@ -44,13 +44,15 @@ function _show(str, opt) end end -function main(targetname, opt) +function main(targetnames, opt) opt = opt or {} -- get targets local targets = {} - if targetname then - table.insert(targets, project.target(targetname)) + if targetnames then + for _, targetname in ipairs(table.wrap(targetnames)) do + table.insert(targets, project.target(targetname)) + end else for _, target in pairs(project.targets()) do if target:is_enabled() then |
