summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbakabaka9405 <[email protected]>2026-05-12 00:33:13 +0800
committerbakabaka9405 <[email protected]>2026-05-12 00:33:13 +0800
commitc33e176c315492ff6397bdf3aa052ad552d79151 (patch)
tree8774976aadd8576dd2fa5847d12dfeeb2239f01c
parentfe5d4800ea9c524c06cc54c52afa3955da2612f1 (diff)
fix: show -l targets now lists all targets regardless of set_default
-rw-r--r--xmake/plugins/show/lists/targets.lua2
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