Make apex_available respect AllowMissingDependencies
am: 4b5438a9ea
Change-Id: I07adcfbe783f58189c352724dd2f93ca574c4859
This commit is contained in:
commit
2b0d6a86a4
|
@ -155,7 +155,7 @@ func (m *ApexModuleBase) checkApexAvailableProperty(mctx BaseModuleContext) {
|
|||
if n == availableToPlatform || n == availableToAnyApex {
|
||||
continue
|
||||
}
|
||||
if !mctx.OtherModuleExists(n) {
|
||||
if !mctx.OtherModuleExists(n) && !mctx.Config().AllowMissingDependencies() {
|
||||
mctx.PropertyErrorf("apex_available", "%q is not a valid module name", n)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue