diff options
| author | bakabaka9405 <[email protected]> | 2026-05-12 00:33:13 +0800 |
|---|---|---|
| committer | bakabaka9405 <[email protected]> | 2026-05-12 00:33:13 +0800 |
| commit | c33e176c315492ff6397bdf3aa052ad552d79151 (patch) | |
| tree | 8774976aadd8576dd2fa5847d12dfeeb2239f01c | |
| parent | fe5d4800ea9c524c06cc54c52afa3955da2612f1 (diff) | |
fix: show -l targets now lists all targets regardless of set_default
| -rw-r--r-- | xmake/plugins/show/lists/targets.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/show/lists/targets.lua b/xmake/plugins/show/lists/targets.lua index fb004b67e..343163adc 100644 --- a/xmake/plugins/show/lists/targets.lua +++ b/xmake/plugins/show/lists/targets.lua @@ -36,7 +36,7 @@ function main() end for name, target in pairs(project.targets()) do local group = target:get("group") - if (target:is_default() and not group_pattern) or (group_pattern and group and group:match(group_pattern)) then + if not group_pattern or (group and group:match(group_pattern)) then table.insert(targets, name) end end |
