Soong: check if lndk is needed for apex build
This is to fix the unnecessary dependencies inclusion when building apex modules. Test: Build Bug: 186306595 Change-Id: I1f3bbdb0a1f97a8338b45ca29c92acf9b20eadd3
This commit is contained in:
parent
17ccf26748
commit
ec2858799b
3
cc/cc.go
3
cc/cc.go
|
@ -3230,6 +3230,9 @@ func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
|
|||
return false
|
||||
}
|
||||
}
|
||||
if cc.IsLlndk() {
|
||||
return false
|
||||
}
|
||||
if isLibDepTag && c.static() && libDepTag.shared() {
|
||||
// shared_lib dependency from a static lib is considered as crossing
|
||||
// the APEX boundary because the dependency doesn't actually is
|
||||
|
|
Loading…
Reference in New Issue