Merge "Soong: check if lndk is needed for apex build" am: ef0439d969 am: 2a4deaaf6d am: 7a89365bc1

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1705069

Change-Id: Iaf8d854ab9548591698c1e8240a26124d904a268
This commit is contained in:
Treehugger Robot 2021-05-13 23:23:58 +00:00 committed by Automerger Merge Worker
commit 0290f6e772
1 changed files with 3 additions and 0 deletions

View File

@ -3228,6 +3228,9 @@ func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Modu
return false return false
} }
} }
if cc.IsLlndk() {
return false
}
if isLibDepTag && c.static() && libDepTag.shared() { if isLibDepTag && c.static() && libDepTag.shared() {
// shared_lib dependency from a static lib is considered as crossing // shared_lib dependency from a static lib is considered as crossing
// the APEX boundary because the dependency doesn't actually is // the APEX boundary because the dependency doesn't actually is