Make apex_available respect AllowMissingDependencies

am: 4b5438a9ea

Change-Id: I07adcfbe783f58189c352724dd2f93ca574c4859
This commit is contained in:
Orion Hodson 2019-10-08 03:27:01 -07:00 committed by android-build-merger
commit 2b0d6a86a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}