Skip creating vendor variants for native_bridge modules am: 1282f42ed6

am: b4ce961486

Change-Id: Ibbbda7ed9645ceb91bb5fbb0bd009f09c393be7e
This commit is contained in:
Justin Yun
2019-09-09 04:29:57 -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.