Skip to content

Commit 0af7f02

Browse files
authored
Make target:filerule able to match package rules
1 parent 241631f commit 0af7f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/core/project/target.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ function _instance:filerules(sourcefile)
16991699
if filerules then
17001700
override = filerules.override
17011701
for _, rulename in ipairs(table.wrap(filerules)) do
1702-
local r = target._project().rule(rulename) or rule.rule(rulename)
1702+
local r = target._project().rule(rulename) or rule.rule(rulename) or self:rule(rulename)
17031703
if r then
17041704
table.insert(rules, r)
17051705
end

0 commit comments

Comments
 (0)