build: add test build target.

This commit is contained in:
Alexandre Pujol 2025-09-14 15:24:49 +02:00
parent b471f8359a
commit d9ff4aecd7
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 21 additions and 0 deletions

View file

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