diff options
| author | 2020-08-26 23:28:54 +0000 | |
|---|---|---|
| committer | 2020-08-26 23:28:54 +0000 | |
| commit | 23a6a41c66cecfddddf001460fc3faccf1a4eece (patch) | |
| tree | e28ffcd22d130256ec4ddf55ff5d253617fdc22f | |
| parent | 4d947f0ea84f80939348d1f792730b38ca5720c5 (diff) | |
| parent | 89f7bf1635c50569a4748ff67431a29b600a2e0e (diff) | |
Merge "bootstrap is added for cc_binary only when the module is in an APEX"
| -rw-r--r-- | cc/binary.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/binary.go b/cc/binary.go index 6769fa778..8fcdd806a 100644 --- a/cc/binary.go +++ b/cc/binary.go @@ -445,7 +445,7 @@ func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) { // The original path becomes a symlink to the corresponding file in the // runtime APEX. translatedArch := ctx.Target().NativeBridge == android.NativeBridgeEnabled - if InstallToBootstrap(ctx.baseModuleName(), ctx.Config()) && !translatedArch && ctx.apexVariationName() == "" && !ctx.inRamdisk() && !ctx.inRecovery() { + if android.DirectlyInAnyApex(ctx, ctx.ModuleName()) && InstallToBootstrap(ctx.baseModuleName(), ctx.Config()) && !translatedArch && ctx.apexVariationName() == "" && !ctx.inRamdisk() && !ctx.inRecovery() { if ctx.Device() && isBionic(ctx.baseModuleName()) { binary.installSymlinkToRuntimeApex(ctx, file) } |