diff options
author | 2021-07-20 09:47:41 -0700 | |
---|---|---|
committer | 2021-07-20 12:46:48 -0700 | |
commit | 0c66bc615b399d2201b15b4c9052066db04a3f5e (patch) | |
tree | be8334e4662f4bf137d2231dc92755e44fc85d5e /java/dexpreopt_config.go | |
parent | ae86338676084cf5966adf99f34e7086f9687edc (diff) |
Replace android.BuildOs with Config.BuildOS
Replace the android.BuildOs constant with Config.BuildOS so that it
can vary based on the product config.
Bug: 190084016
Test: all Soong tests
Change-Id: Ia67f872d8b2ab788747a22e3a9659dc21c9775cd
Diffstat (limited to 'java/dexpreopt_config.go')
-rw-r--r-- | java/dexpreopt_config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index b13955fba..1507aaf00 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -32,7 +32,7 @@ func dexpreoptTargets(ctx android.PathContext) []android.Target { } } // We may also need the images on host in order to run host-based tests. - for _, target := range ctx.Config().Targets[android.BuildOs] { + for _, target := range ctx.Config().Targets[ctx.Config().BuildOS] { targets = append(targets, target) } |