Skip to content

Commit 86627f2

Browse files
authored
Merge pull request #5730 from SirLynix/patch-18
Make target:filerule able to match package rules
2 parents 241631f + 0af7f02 commit 86627f2

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)