mirror of https://github.com/xmake-io/xmake.git
Merge pull request #5730 from SirLynix/patch-18
Make target:filerule able to match package rules
This commit is contained in:
commit
86627f20f8
|
@ -1699,7 +1699,7 @@ function _instance:filerules(sourcefile)
|
|||
if filerules then
|
||||
override = filerules.override
|
||||
for _, rulename in ipairs(table.wrap(filerules)) do
|
||||
local r = target._project().rule(rulename) or rule.rule(rulename)
|
||||
local r = target._project().rule(rulename) or rule.rule(rulename) or self:rule(rulename)
|
||||
if r then
|
||||
table.insert(rules, r)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue