diff options
-rw-r--r-- | cc/binary.go | 4 | ||||
-rw-r--r-- | cc/library.go | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cc/binary.go b/cc/binary.go index 99529433..cae1739b 100644 --- a/cc/binary.go +++ b/cc/binary.go @@ -437,7 +437,9 @@ func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) { // The original path becomes a symlink to the corresponding file in the // runtime APEX. if isBionic(ctx.baseModuleName()) && ctx.Arch().Native && ctx.apexName() == "" && !ctx.inRecovery() { - binary.installSymlinkToRuntimeApex(ctx, file) + if ctx.Device() { + binary.installSymlinkToRuntimeApex(ctx, file) + } binary.baseInstaller.subDir = "bootstrap" } binary.baseInstaller.install(ctx, file) diff --git a/cc/library.go b/cc/library.go index 6404906c..5df51129 100644 --- a/cc/library.go +++ b/cc/library.go @@ -920,7 +920,9 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) { // The original path becomes a symlink to the corresponding file in the // runtime APEX. if isBionic(ctx.baseModuleName()) && !library.buildStubs() && ctx.Arch().Native && !ctx.inRecovery() { - library.installSymlinkToRuntimeApex(ctx, file) + if ctx.Device() { + library.installSymlinkToRuntimeApex(ctx, file) + } library.baseInstaller.subDir = "bootstrap" } } |