diff options
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 49cbcdeae..23d65f384 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -543,7 +543,9 @@ function target:objectfiles() -- get object files from source batches local objectfiles = {} for sourcekind, sourcebatch in pairs(self:sourcebatches()) do - table.join2(objectfiles, sourcebatch.objectfiles) + if not sourcebatch.rulename then + table.join2(objectfiles, sourcebatch.objectfiles) + end end -- cache it @@ -638,7 +640,9 @@ function target:incdepfiles() -- get incdep files from source batches local incdepfiles = {} for sourcekind, sourcebatch in pairs(self:sourcebatches()) do - table.join2(incdepfiles, sourcebatch.incdepfiles) + if not sourcebatch.rulename then + table.join2(incdepfiles, sourcebatch.incdepfiles) + end end -- cache it @@ -752,7 +756,7 @@ function target:sourcebatches() for sourcekind, sourcebatch in pairs(sourcebatches) do -- skip source files with the custom rule - if not sourcekind:startswith("__rule_") then + if not sourcebatch.rulename then -- this batch support to compile multiple objects at the same time? local instance = compiler.load(sourcekind) |
