diff options
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index 5602edc79..a044a99dd 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -1756,6 +1756,16 @@ func (mod *Module) HostToolPath() android.OptionalPath { var _ android.ApexModule = (*Module)(nil) +// If a module is marked for exclusion from apexes, don't provide apex variants. +// TODO(b/362509506): remove this once stubs are properly supported by rust_ffi targets. +func (m *Module) CanHaveApexVariants() bool { + if m.ApexExclude() { + return false + } else { + return m.ApexModuleBase.CanHaveApexVariants() + } +} + func (mod *Module) MinSdkVersion() string { return String(mod.Properties.Min_sdk_version) } |