summaryrefslogtreecommitdiff
path: root/java/dexpreopt_config.go
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2020-01-10 20:32:59 +0000
committer Martin Stjernholm <mast@google.com> 2020-02-13 17:21:13 +0000
commit75a48d8ae23c017dadc7ac025b45f5a1aebfbe4c (patch)
tree078c89c9f86ffe3f2bf9cc0f15242644971408c4 /java/dexpreopt_config.go
parent394b9b379a9f84d26089b44a4eb130789422435f (diff)
Reland: Separate dexpreopt.GlobalSoongConfig to allow independent
caching of it. Introduce a Once cache for GlobalSoongConfig to allow it to get binary tool paths from ordinary module dependencies (coming in a future CL) that are then reused in singletons. This relands https://r.android.com/1205729. Bug: 145934348 Test: m Change-Id: I039d6e204bee5ddc16d8e2d85057fbec20e326fe
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r--java/dexpreopt_config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go
index 7d0bd8fb7..0aa9005f6 100644
--- a/java/dexpreopt_config.go
+++ b/java/dexpreopt_config.go
@@ -39,8 +39,7 @@ func dexpreoptGlobalConfigRaw(ctx android.PathContext) globalConfigAndRaw {
if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil {
panic(err)
} else if data != nil {
- soongConfig := dexpreopt.CreateGlobalSoongConfig(ctx)
- globalConfig, err := dexpreopt.LoadGlobalConfig(ctx, data, soongConfig)
+ globalConfig, err := dexpreopt.LoadGlobalConfig(ctx, data)
if err != nil {
panic(err)
}