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

Commit 56e02905 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by Gerrit Code Review
Browse files

Merge "Don't return null for an interface type."

parents 9ce7e58c 27c7cc6c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -335,13 +335,12 @@ It is likely that the boot classpath is inconsistent.
Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.`

func bootImageProfileRule(ctx android.SingletonContext, image *bootImage, missingDeps []string) android.WritablePath {
	return ctx.Config().Once(bootImageProfileRuleKey, func() interface{} {
	global := dexpreoptGlobalConfig(ctx)

	if !global.UseProfileForBootImage || ctx.Config().IsPdkBuild() || ctx.Config().UnbundledBuild() {
		return nil
	}

	return ctx.Config().Once(bootImageProfileRuleKey, func() interface{} {
		tools := global.Tools

		rule := android.NewRuleBuilder()