diff options
author | 2024-10-17 13:28:34 -0700 | |
---|---|---|
committer | 2024-10-17 13:28:34 -0700 | |
commit | 64f2d844f27511ffdc062fe77384577d33d62880 (patch) | |
tree | bb9252fc4d53b8e1c00e462eb7e16d8b931af84c /java/base.go | |
parent | 991d11df34cc11d0dd71c8e4334fc3fc9e28e054 (diff) |
Make uses_libs and optional_uses_libs configurable
Requested for the mk2bp conversion.
Fixes: 373772769
Test: m nothing --no-skip-soong-tests
Change-Id: I9a36e73f20c73e25b555fb3f0a074b30a548ae50
Diffstat (limited to 'java/base.go')
-rw-r--r-- | java/base.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/base.go b/java/base.go index a9399cbd3..f6764b6f3 100644 --- a/java/base.go +++ b/java/base.go @@ -862,7 +862,7 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) { // explicitly listed in the optional_uses_libs property. tag := usesLibReqTag if android.InList(*lib, dexpreopt.OptionalCompatUsesLibs) || - android.InList(*lib, j.usesLibrary.usesLibraryProperties.Optional_uses_libs) { + android.InList(*lib, j.usesLibrary.usesLibraryProperties.Optional_uses_libs.GetOrDefault(ctx, nil)) { tag = usesLibOptTag } ctx.AddVariationDependencies(nil, tag, *lib) |