summaryrefslogtreecommitdiff
path: root/cc/proto.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2023-04-12 19:05:49 +0000
committer Spandan Das <spandandas@google.com> 2023-04-27 23:24:49 +0000
commit39b6cc53369a6ec132b58d99514cd7a2ea499efd (patch)
tree4c211ebfe39e2ea60de495f6928e39532ca31320 /cc/proto.go
parentf57a966b6694da970e99f519919f9b845b713163 (diff)
Ignore test apexes from bp2build generated tags
Soong does not enforce apex_available on the contents of test apex. To prevent special-casing test apexes in the apex validation aspect in Bazel, drop the test apexes from the tags altogether. ( The core problem I am trying to solve is making sure that stub libraries in Bazel have a single apex available. apex validation happens to be a nice side benefit) Bug: 277651159 Test: go test ./bp2build Change-Id: Ibb3cfedb5c0f2cda0464bf3758c70b67cb5885d1
Diffstat (limited to 'cc/proto.go')
-rw-r--r--cc/proto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/proto.go b/cc/proto.go
index 97470e5ea..5d9aef60f 100644
--- a/cc/proto.go
+++ b/cc/proto.go
@@ -207,7 +207,7 @@ func bp2buildProto(ctx android.Bp2buildMutatorContext, m *Module, protoSrcs baze
protoAttrs.Min_sdk_version = m.Properties.Min_sdk_version
name := m.Name() + suffix
- tags := android.ApexAvailableTags(m)
+ tags := android.ApexAvailableTagsWithoutTestApexes(ctx.(android.TopDownMutatorContext), m)
ctx.CreateBazelTargetModule(
bazel.BazelTargetModuleProperties{
Rule_class: rule_class,