summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-08 00:48:45 +0800
committerruki <[email protected]>2022-12-08 00:48:45 +0800
commit148c595c7b552d08573d8d1c12b7c97951c8498a (patch)
tree4ab218956d75ac9005578f9e0c36cecc5c257fd4
parentd92aeb868f50151761e761c07886a89e3428a559 (diff)
fix build all
-rw-r--r--xmake/actions/build/build.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/xmake/actions/build/build.lua b/xmake/actions/build/build.lua
index aba9b1419..f79f6fe37 100644
--- a/xmake/actions/build/build.lua
+++ b/xmake/actions/build/build.lua
@@ -217,12 +217,14 @@ function get_batchjobs(targetname, group_pattern)
local depset = hashset.new()
local targets = {}
for _, target in pairs(project.targets()) do
- local group = target:get("group")
- if (target:is_enabled() and target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then
- for _, depname in ipairs(target:get("deps")) do
- depset:insert(depname)
+ if target:is_enabled() then
+ local group = target:get("group")
+ if (target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then
+ for _, depname in ipairs(target:get("deps")) do
+ depset:insert(depname)
+ end
+ table.insert(targets, target)
end
- table.insert(targets, target)
end
end
for _, target in pairs(targets) do