From 49a25cbc7c0bdbfedbfcbab22c7157517352dd62 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 21 May 2019 16:06:09 -0700 Subject: Restore the test for bionic being in an APEX. This was removed in https://android-review.googlesource.com/c/platform/build/soong/+/950885 because it appeared that bionic was always in an APEX, but apparently the ART host tests have bionic outside of an APEX. Test: art/test/testrunner/run_build_test_target.py -j50 art-linux-bionic-x64 Change-Id: I0b99462e8636da53c87f9250093689aaaf9ea695 --- cc/library.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/library.go b/cc/library.go index 7889cb19..3053831a 100644 --- a/cc/library.go +++ b/cc/library.go @@ -957,7 +957,7 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) { library.baseInstaller.subDir += "-" + vndkVersion } } - } else if len(library.Properties.Stubs.Versions) > 0 { + } else if len(library.Properties.Stubs.Versions) > 0 && android.DirectlyInAnyApex(ctx, ctx.ModuleName()) { // Bionic libraries (e.g. libc.so) is installed to the bootstrap subdirectory. // The original path becomes a symlink to the corresponding file in the // runtime APEX. -- cgit v1.2.3-54-g00ecf