summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-11 00:36:39 +0800
committerruki <[email protected]>2021-03-11 00:36:39 +0800
commit9039db9855e26363dc95296955347e2a80835287 (patch)
treea1b1ffba552b5a97b9449eef13130d4f0c2e077b /xmake/core/project/target.lua
parent6620104d73da3f0ca697276fea4ed897e45f35a2 (diff)
improve sourcekind for rule
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua2
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