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:
parent
dd22225b3a
commit
0f6fdf5544
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue