diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-05-31 16:27:00 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-05-31 16:27:00 -0700 |
commit | 17f052647f5e4afcb3f5c4142d9a2ccec627faab (patch) | |
tree | b93e8e836e52fe7ca8c98d21fee7482f36a7da1d /cc | |
parent | 5efc70689589019e04c1a5fe8975dc2671c9ac7b (diff) | |
download | build_soong-17f052647f5e4afcb3f5c4142d9a2ccec627faab.tar.gz build_soong-17f052647f5e4afcb3f5c4142d9a2ccec627faab.tar.bz2 build_soong-17f052647f5e4afcb3f5c4142d9a2ccec627faab.zip |
Support installing non-native arch binaries
For the x86_arm target, which uses two 32-bit architectures, x86
libraries should be installed into ".../lib", and arm libraries should
be installed into ".../lib/arm".
This shouldn't be necessary for binaries, but non-native binaries aren't
supported in Make right now, so we can revisit this once it's necessary.
Change-Id: I4d883c85d3ef4945ff6149d9c4fc81af5023e12b
Diffstat (limited to 'cc')
-rw-r--r-- | cc/cc.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) } |