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

Commit 0ba56bf1 authored by Spandan Das's avatar Spandan Das Committed by Gerrit Code Review
Browse files

Merge "Ignore missing apex boot jars if it does not exist" into main

parents 00a672ac 33a291c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -105,6 +105,10 @@ func gatherPossibleApexModuleNamesAndStems(ctx android.ModuleContext, contents [
	set := map[string]struct{}{}
	for _, name := range contents {
		dep := ctx.GetDirectDepWithTag(name, tag)
		if dep == nil && ctx.Config().AllowMissingDependencies() {
			// Ignore apex boot jars from dexpreopt if it does not exist, and missing deps are allowed.
			continue
		}
		set[ModuleStemForDeapexing(dep)] = struct{}{}
		if m, ok := dep.(ModuleWithStem); ok {
			set[m.Stem()] = struct{}{}