diff options
| author | ruki <[email protected]> | 2021-03-11 00:37:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-11 00:37:05 +0800 |
| commit | 035f310d1076abdab7f3f43d925431e1b906b08c (patch) | |
| tree | f50db58fe64304625adc67983b207e8c6aaf56e9 | |
| parent | 9039db9855e26363dc95296955347e2a80835287 (diff) | |
fix errors
| -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 d3bb27766..e65c12c32 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 target:get("sourcekinds") and not override then + if sourcekind and filerule:get("sourcekinds") and not override then -- save source kind sourcebatch.sourcekind = sourcekind |
