diff options
| author | ruki <[email protected]> | 2025-06-07 23:13:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-06-07 23:13:04 +0800 |
| commit | 487397fd5424b482af1c4711e97658d8409c91d3 (patch) | |
| tree | 25e1d27a96a459b329b1638a7dc5dc9410488f04 | |
| parent | 3f5424d4f6e54ad4749cfd13697bb27e9256b8b3 (diff) | |
improve sourcekind
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index cda2e612e..eb29ed952 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1810,7 +1810,6 @@ function _instance:filerules(sourcefile) local override = false local fileconfig = self:fileconfig(sourcefile) if fileconfig then - utils.dump(fileconfig) local filerules = fileconfig.rules or fileconfig.rule if filerules then override = filerules.override @@ -1861,7 +1860,8 @@ function _instance:filerules(sourcefile) local filename = path.filename(sourcefile):lower() for _, r in ipairs(table.wrap(key2rules[path.extension(filename, 2)] or key2rules[path.extension(filename)] or - key2rules[self:sourcekind_of(filename)])) do + key2rules[self:sourcekind_of(filename)] or + key2rules[fileconfig and fileconfig.sourcekind])) do -- add_files("*.nasm", {sourcekind = "asm"}) if self:extraconf("rules", r:name(), "override") then table.insert(rules_override, r) else |
