Merge "No symlink for host APEXes" am: 0ffa3aba78

Change-Id: Idd179e8a305f6797cf83fdc277ab1d83f1b32f24
This commit is contained in:
Automerger Merge Worker 2020-02-28 00:14:23 +00:00
commit 82e9e2833a

View file

@ -2327,6 +2327,11 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
a.linkToSystemLib = false
}
// We also don't want the optimization for host APEXes, because it doesn't make sense.
if ctx.Host() {
a.linkToSystemLib = false
}
// prepare apex_manifest.json
a.buildManifest(ctx, provideNativeLibs, requireNativeLibs)