Skip creating vendor variants for native_bridge modules am: 1282f42ed6 am: b4ce961486 am: e24b072028

am: ce07f30fb7

Change-Id: I06aca8b19d2bef695da1462c877e57085aaa52ce
This commit is contained in:
Justin Yun
2019-09-09 04:43:59 -07:00
committed by android-build-merger

View File

@@ -2323,6 +2323,9 @@ func ImageMutator(mctx android.BottomUpMutatorContext) {
// If the device isn't compiling against the VNDK, we always
// use the core mode.
coreVariantNeeded = true
} else if m.Target().NativeBridge == android.NativeBridgeEnabled {
// Skip creating vendor variants for natvie bridge modules
coreVariantNeeded = true
} else if _, ok := m.linker.(*llndkStubDecorator); ok {
// LL-NDK stubs only exist in the vendor variant, since the
// real libraries will be used in the core variant.