From 5a34720659d9a22096bd209b591e720bc3d7bbe9 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 9 Mar 2021 00:55:13 +0800 Subject: improve target rule --- xmake/core/project/target.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index ee7e3f519..84b4772a2 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 filerule:get("sourcekinds") and not override then -- save source kind sourcebatch.sourcekind = sourcekind -- cgit v1.3.1