summaryrefslogtreecommitdiff
path: root/java/base.go
diff options
context:
space:
mode:
author LaMont Jones <lamontjones@google.com> 2025-03-18 15:18:58 -0700
committer LaMont Jones <lamontjones@google.com> 2025-03-19 11:48:52 -0700
commitb97f1d1b6b790619514395126527f3639e16fe6f (patch)
treea7df4e422f35afe1278657183d1fc395be1d8ed9 /java/base.go
parent92d29690f16cdbba244b523c9110cb9af999d22e (diff)
Use d8 when on eng builds
This is consistent with all of the other ways that eng builds are faster, but do not match the expected performance of user or userdebug builds. We still use r8 if a module has `optimize: { enabled: true,}`. Bug: b/374975543 Test: manual, TH Change-Id: I28c6de4472f4df1f791758294d45b67acc0a7b7c
Diffstat (limited to 'java/base.go')
-rw-r--r--java/base.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/base.go b/java/base.go
index 1a12075bc..8aa0109d0 100644
--- a/java/base.go
+++ b/java/base.go
@@ -1816,7 +1816,7 @@ func (j *Module) compile(ctx android.ModuleContext, extraSrcJars, extraClasspath
classesJar: outputFile,
jarName: jarName,
}
- if j.GetProfileGuided(ctx) && j.optimizeOrObfuscateEnabled() && !j.EnableProfileRewriting(ctx) {
+ if j.GetProfileGuided(ctx) && j.optimizeOrObfuscateEnabled(ctx) && !j.EnableProfileRewriting(ctx) {
ctx.PropertyErrorf("enable_profile_rewriting",
"Enable_profile_rewriting must be true when profile_guided dexpreopt and R8 optimization/obfuscation is turned on. The attached profile should be sourced from an unoptimized/unobfuscated APK.",
)