build: add RBAC filter to the only/exclude directive.

This commit is contained in:
Alexandre Pujol 2025-05-26 01:00:08 +02:00
parent 780ca65953
commit c07c5838e4
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,10 @@ func init() {
}
func filterRuleForUs(opt *Option) bool {
if prebuild.RBAC && slices.Contains(opt.ArgList, "RBAC") {
return true
}
abiStr := fmt.Sprintf("abi%d", prebuild.ABI)
if slices.Contains(opt.ArgList, abiStr) {
return true