Fix dex-location for host.

Fix the location for non-default build output path.

Test: Run host test on golem.
Change-Id: Idbaccfc69196fc0b17a849b4a0c7a54d75fd363d
This commit is contained in:
David Srbecky 2020-04-06 18:48:22 +01:00
parent dd22225b3a
commit 0f6fdf5544
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func stemOf(moduleName string) string {
func getDexLocation(ctx android.PathContext, target android.Target, subdir string, name string) string {
if target.Os.Class == android.Host {
return filepath.Join("out", "host", ctx.Config().PrebuiltOS(), subdir, name)
return filepath.Join(ctx.Config().Getenv("OUT_DIR"), "host", ctx.Config().PrebuiltOS(), subdir, name)
} else {
return filepath.Join("/", subdir, name)
}