diff options
| author | ruki <[email protected]> | 2021-03-11 00:36:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-11 00:36:39 +0800 |
| commit | 9039db9855e26363dc95296955347e2a80835287 (patch) | |
| tree | a1b1ffba552b5a97b9449eef13130d4f0c2e077b /xmake/core/project/target.lua | |
| parent | 6620104d73da3f0ca697276fea4ed897e45f35a2 (diff) | |
improve sourcekind for rule
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 617141791..d3bb27766 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1574,7 +1574,7 @@ function _instance:sourcebatches() -- attempt to get source kind from the builtin languages local sourcekind = self:sourcekind_of(sourcefile) - if sourcekind and not override then + if sourcekind and target:get("sourcekinds") and not override then -- save source kind sourcebatch.sourcekind = sourcekind |
