diff options
Diffstat (limited to 'python/installer.go')
-rw-r--r-- | python/installer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/installer.go b/python/installer.go index 22c06c24d..62f36f4b5 100644 --- a/python/installer.go +++ b/python/installer.go @@ -15,6 +15,8 @@ package python import ( + "path/filepath" + "android/soong/android" ) @@ -50,6 +52,9 @@ func (installer *pythonInstaller) installDir(ctx android.ModuleContext) android. if ctx.Arch().ArchType.Multilib == "lib64" && installer.dir64 != "" { dir = installer.dir64 } + if !ctx.Host() && !ctx.Arch().Native { + dir = filepath.Join(dir, ctx.Arch().ArchType.String()) + } return android.PathForModuleInstall(ctx, dir, installer.relative) } |