Merge "Allow module types to force creation of a default APEX variant" am: 9896b3424b
am: 05ca6f6919
am: 5c45498964
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1705263 Change-Id: I4365d9d1dfbfcd8bf9aa3f6381ec9470b7ff9921
This commit is contained in:
@@ -1002,9 +1002,8 @@ func markPlatformAvailability(mctx android.BottomUpMutatorContext) {
|
||||
}
|
||||
})
|
||||
|
||||
// Exception 1: stub libraries and native bridge libraries are always available to platform
|
||||
if cc, ok := mctx.Module().(*cc.Module); ok &&
|
||||
(cc.IsStubs() || cc.Target().NativeBridge == android.NativeBridgeEnabled) {
|
||||
// Exception 1: check to see if the module always requires it.
|
||||
if am.AlwaysRequiresPlatformApexVariant() {
|
||||
availableToPlatform = true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user