rust: Disable dylib vendor modules

These modules do not currently build correctly. Support is planned but
not complete.

Bug: 204303985
Test: Presubmit + build `rust_library` with `vendor_available: true`
Change-Id: Iac7df9fe0d4eaa9a5ec0ff5a9cd5670af23df2a6
This commit is contained in:
Matthew Maurer 2021-12-16 23:42:47 +00:00
parent 86baf3e191
commit bdda910395

View file

@ -681,6 +681,12 @@ func LibraryMutator(mctx android.BottomUpMutatorContext) {
} }
variation := v.(*Module).ModuleBase.ImageVariation().Variation variation := v.(*Module).ModuleBase.ImageVariation().Variation
if strings.HasPrefix(variation, cc.VendorVariationPrefix) {
// TODO(b/204303985)
// Disable vendor dylibs until they are supported
v.(*Module).Disable()
}
if strings.HasPrefix(variation, cc.VendorVariationPrefix) && if strings.HasPrefix(variation, cc.VendorVariationPrefix) &&
m.HasVendorVariant() && m.HasVendorVariant() &&
!snapshot.IsVendorProprietaryModule(mctx) && !snapshot.IsVendorProprietaryModule(mctx) &&