diff options
| author | ruki <[email protected]> | 2021-03-09 00:55:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-09 00:55:13 +0800 |
| commit | 5a34720659d9a22096bd209b591e720bc3d7bbe9 (patch) | |
| tree | 34368f3b9ffc757c417c2be7c48c5cf4f1cd496f | |
| parent | d2bf2df2c3afdf1335721ae37cfeb721ff130227 (diff) | |
improve target rule
| -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 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 |
