diff options
author | 2024-02-20 08:08:35 +0000 | |
---|---|---|
committer | 2024-02-20 08:08:35 +0000 | |
commit | 4bec95e2f6fcb6b3e64eb5634a979720ff5a2a54 (patch) | |
tree | 3931b99c0fb8d37366aa14b82ee49d7ae44d9e3e /java/java.go | |
parent | 73f4a4a481759d2c8bea02cf99ede77f0d39664f (diff) | |
parent | 0727ba76b11f8387797a2d412c0b1c415d2d4468 (diff) |
Merge "Disable dexpreopt if optional_uses_libs does not have an impl" into main
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go index 1a266b859..7cf5c1f17 100644 --- a/java/java.go +++ b/java/java.go @@ -743,6 +743,9 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) { setUncompressDex(ctx, &j.dexpreopter, &j.dexer) j.dexpreopter.uncompressedDex = *j.dexProperties.Uncompress_dex j.classLoaderContexts = j.usesLibrary.classLoaderContextForUsesLibDeps(ctx) + if j.usesLibrary.shouldDisableDexpreopt { + j.dexpreopter.disableDexpreopt() + } } j.compile(ctx, nil, nil, nil) |