summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/unity_build/unity_build.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/unity_build/unity_build.lua')
-rw-r--r--xmake/rules/c++/unity_build/unity_build.lua2
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)