diff options
author | 2020-01-10 17:35:22 +0000 | |
---|---|---|
committer | 2020-01-10 17:35:22 +0000 | |
commit | e35e961aa925e6ab75daf455d36875b3d6511081 (patch) | |
tree | 27e9a02f9e216e9b25d7cafa03114b0cb02d2820 /java/dexpreopt_config.go | |
parent | 2827ccc126a37c0cff4336b2ea7155fa816b378c (diff) | |
parent | 05c25ccb4adb5329add700b533416c226cdbfa96 (diff) |
Merge "Sandbox soong_build by changing to root directory"
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r-- | java/dexpreopt_config.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index 8749a7d57..a0fcba755 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -36,10 +36,11 @@ type globalConfigAndRaw struct { func dexpreoptGlobalConfigRaw(ctx android.PathContext) globalConfigAndRaw { return ctx.Config().Once(dexpreoptGlobalConfigKey, func() interface{} { - if f := ctx.Config().DexpreoptGlobalConfig(); f != "" { + if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil { + panic(err) + } else if data != nil { soongConfig := dexpreopt.CreateGlobalSoongConfig(ctx) - ctx.AddNinjaFileDeps(f) - globalConfig, data, err := dexpreopt.LoadGlobalConfig(ctx, f, soongConfig) + globalConfig, err := dexpreopt.LoadGlobalConfig(ctx, data, soongConfig) if err != nil { panic(err) } |