From bd26b472129bc61043a69ffecbddabbd83eb0650 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Nov 2021 00:59:01 +0800 Subject: improve target.sourcekinds --- xmake/core/project/target.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core/project') diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 08ab720c0..c48d64c47 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1609,8 +1609,8 @@ function _instance:sourcekinds() local sourcekinds = self._SOURCEKINDS if not sourcekinds then sourcekinds = {} - for _, sourcefile in pairs(self:sourcefiles()) do - local sourcekind = self:sourcekind_of(sourcefile) + for _, sourcebatch in pairs(self:sourcebatches()) do + local sourcekind = sourcebatch.sourcekind if sourcekind then table.insert(sourcekinds, sourcekind) end -- cgit v1.3.1