aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 9cdd66c0..bac3e88e 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1347,6 +1347,9 @@ func (installer *baseInstaller) install(ctx ModuleContext, file android.Path) {
if ctx.toolchain().Is64Bit() && installer.dir64 != "" {
subDir = installer.dir64
}
+ if !ctx.Host() && !ctx.Arch().Native {
+ subDir = filepath.Join(subDir, ctx.Arch().ArchType.String())
+ }
dir := android.PathForModuleInstall(ctx, subDir, installer.Properties.Relative_install_path)
installer.path = ctx.InstallFile(dir, file)
}