diff options
| author | ruki <[email protected]> | 2022-12-06 23:50:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-06 23:50:25 +0800 |
| commit | 2490a3643cfd6dbd5f22bb49aeab8a1e0bfbb636 (patch) | |
| tree | 003bd1a8c654fc31b94c859726148844db3d5e5f | |
| parent | 1c32eaad0fd0cb6389806bae00d326d77c775f01 (diff) | |
improve enabled target #3136
| -rw-r--r-- | xmake/actions/build/build.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/build/build.lua b/xmake/actions/build/build.lua index 0213935fe..aba9b1419 100644 --- a/xmake/actions/build/build.lua +++ b/xmake/actions/build/build.lua @@ -218,7 +218,7 @@ function get_batchjobs(targetname, group_pattern) local targets = {} for _, target in pairs(project.targets()) do 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 + 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) end |
