diff options
| author | ruki <[email protected]> | 2021-10-18 21:04:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-18 21:04:08 +0800 |
| commit | afcfa7fcd5dd767ecd683cdd5bacea120cfc6270 (patch) | |
| tree | 67ffaea21e173d5099f66d560603bfb23d543c91 /xmake/rules/c++/unity_build/unity_build.lua | |
| parent | 26de32e94fea1b849395ccf035aeb111b71084f3 (diff) | |
improve unity build
Diffstat (limited to 'xmake/rules/c++/unity_build/unity_build.lua')
| -rw-r--r-- | xmake/rules/c++/unity_build/unity_build.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index 82338f506..e28e5aff3 100644 --- a/xmake/rules/c++/unity_build/unity_build.lua +++ b/xmake/rules/c++/unity_build/unity_build.lua @@ -83,7 +83,7 @@ function main(target, sourcebatch) local fileconfig = target:fileconfig(sourcefile) if fileconfig and fileconfig.unity_group then sourcefile_unity = path.join(sourcedir, "unity_" .. fileconfig.unity_group .. path.extension(sourcefile)) - elseif fileconfig and fileconfig.unity_ignored then + elseif (fileconfig and fileconfig.unity_ignored) or (batchsize == 0) then -- we do not add these files to unity file table.insert(sourcefiles, sourcefile) table.insert(objectfiles, objectfile) |
