diff options
author | 2020-01-08 10:58:24 +0000 | |
---|---|---|
committer | 2020-01-08 10:58:24 +0000 | |
commit | 11e1ae025f45e47d53f52a839ed659bc8f877fb8 (patch) | |
tree | 3b522f0744bab56fd1ae86d4171057b70484727e /java/dexpreopt_bootjars.go | |
parent | 46f60291f34c69bd941c13d793bd59369ef7f292 (diff) | |
parent | 4456188939ebadae8e38cc15c8f99bbbf1c989f8 (diff) |
Merge "Include jacoco in the ART boot image if EMMA_INSTRUMENT_FRAMEWORK=true."
Diffstat (limited to 'java/dexpreopt_bootjars.go')
-rw-r--r-- | java/dexpreopt_bootjars.go | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go index 11aa27112..fe5bed501 100644 --- a/java/dexpreopt_bootjars.go +++ b/java/dexpreopt_bootjars.go @@ -178,12 +178,6 @@ func skipDexpreoptBootJars(ctx android.PathContext) bool { return false } -func skipDexpreoptArtBootJars(ctx android.BuilderContext) bool { - // with EMMA_INSTRUMENT_FRAMEWORK=true ART boot class path libraries have dependencies on framework, - // therefore dexpreopt ART libraries cannot be dexpreopted in isolation => no ART boot image - return ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") -} - type dexpreoptBootJars struct { defaultBootImage *bootImage otherImages []*bootImage @@ -193,7 +187,7 @@ type dexpreoptBootJars struct { // Accessor function for the apex package. Returns nil if dexpreopt is disabled. func DexpreoptedArtApexJars(ctx android.BuilderContext) map[android.ArchType]android.OutputPaths { - if skipDexpreoptBootJars(ctx) || skipDexpreoptArtBootJars(ctx) { + if skipDexpreoptBootJars(ctx) { return nil } return artBootImageConfig(ctx).imagesDeps @@ -222,10 +216,8 @@ func (d *dexpreoptBootJars) GenerateBuildActions(ctx android.SingletonContext) { // Always create the default boot image first, to get a unique profile rule for all images. d.defaultBootImage = buildBootImage(ctx, defaultBootImageConfig(ctx)) - if !skipDexpreoptArtBootJars(ctx) { - // Create boot image for the ART apex (build artifacts are accessed via the global boot image config). - d.otherImages = append(d.otherImages, buildBootImage(ctx, artBootImageConfig(ctx))) - } + // Create boot image for the ART apex (build artifacts are accessed via the global boot image config). + d.otherImages = append(d.otherImages, buildBootImage(ctx, artBootImageConfig(ctx))) if global.GenerateApexImage { // Create boot images for the JIT-zygote experiment. d.otherImages = append(d.otherImages, buildBootImage(ctx, apexBootImageConfig(ctx))) |