Don't create version variations of sdk modules

They are never used, skip creating them.

Test: m checkbuild
Change-Id: I4c8cd544327ae79b781f704be5a9064efdbdf2af
This commit is contained in:
Colin Cross
2020-09-25 18:47:38 -07:00
parent 3146c5cd67
commit 565cafdcb1
2 changed files with 4 additions and 2 deletions

View File

@@ -1545,14 +1545,16 @@ func CanBeOrLinkAgainstVersionVariants(module interface {
Host() bool
InRamdisk() bool
InRecovery() bool
UseSdk() bool
}) bool {
return !module.Host() && !module.InRamdisk() && !module.InRecovery()
return !module.Host() && !module.InRamdisk() && !module.InRecovery() && !module.UseSdk()
}
func CanBeVersionVariant(module interface {
Host() bool
InRamdisk() bool
InRecovery() bool
UseSdk() bool
CcLibraryInterface() bool
Shared() bool
Static() bool