Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b0d6a86 authored by Orion Hodson's avatar Orion Hodson Committed by android-build-merger
Browse files

Make apex_available respect AllowMissingDependencies

am: 4b5438a9

Change-Id: I07adcfbe783f58189c352724dd2f93ca574c4859
parents 6064472e 4b5438a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
		}
	}