diff options
| author | ruki <[email protected]> | 2026-05-12 06:47:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-05-12 06:47:23 +0800 |
| commit | f76ffd89c6b55b1f8a5a72123f06cbf8bfaca27d (patch) | |
| tree | 8774976aadd8576dd2fa5847d12dfeeb2239f01c | |
| parent | fe5d4800ea9c524c06cc54c52afa3955da2612f1 (diff) | |
| parent | c33e176c315492ff6397bdf3aa052ad552d79151 (diff) | |
Merge pull request #7540 from bakabaka9405/dev
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 |
