Merge "Dedup checks for module being in versioned sdk snapshot"
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -3539,7 +3539,7 @@ func (c *Module) IsInstallableToApex() bool {
|
||||
if lib := c.library; lib != nil {
|
||||
// Stub libs and prebuilt libs in a versioned SDK are not
|
||||
// installable to APEX even though they are shared libs.
|
||||
return lib.shared() && !lib.buildStubs() && c.ContainingSdk().Unversioned()
|
||||
return lib.shared() && !lib.buildStubs() && !android.IsModuleInVersionedSdk(c)
|
||||
} else if _, ok := c.linker.(testPerSrc); ok {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user