diff options
| author | Domain <[email protected]> | 2023-11-29 01:45:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-29 01:45:25 +0800 |
| commit | 12ccbc2d9616502d403027262788495c9d278920 (patch) | |
| tree | df447eadc965328cf779397f504d422c4328fec1 | |
| parent | 69040da32ac75d05edc0db353e149dea7021eca5 (diff) | |
support batchsize in group mode
typo
| -rw-r--r-- | xmake/rules/c++/unity_build/unity_build.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index f8411f2ef..ffd222ad7 100644 --- a/xmake/rules/c++/unity_build/unity_build.lua +++ b/xmake/rules/c++/unity_build/unity_build.lua @@ -98,8 +98,8 @@ function main(target, sourcebatch) local fileconfig = target:fileconfig(sourcefile) if fileconfig and fileconfig.unity_group then if fileconfig.batchsize then - local curr_group_id = group_id[fileconfig.batchsize] or 1 - local curr_group_count = group_count[fileconfig.batchsize] or 0 + local curr_group_id = group_id[fileconfig.unity_group] or 1 + local curr_group_count = group_count[fileconfig.unity_group] or 0 if curr_group_count >= fileconfig.batchsize then curr_group_id = curr_group_id + 1 curr_group_count = 0 |
