diff options
| author | ruki <[email protected]> | 2021-11-11 00:59:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-11 00:59:01 +0800 |
| commit | bd26b472129bc61043a69ffecbddabbd83eb0650 (patch) | |
| tree | 730e587c5c2bbb65289f593663b0adcc37afd5f5 /xmake/core/project/target.lua | |
| parent | 886c51e8ce29b07adb96d4db0f73e38ce9318990 (diff) | |
improve target.sourcekinds
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
