summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-09-17 14:45:31 -0700
committerColin Cross <ccross@android.com>2019-09-19 12:54:32 -0700
commit3b19f5d71dbdbbf79a211f40ccfd39f42f2bc7ec (patch)
tree8559295a723d8b002755fba3645e44ed620ca071 /rust/compiler.go
parent1f6c94a3ac5cc86c81a3a8e9ed5561d0e1e9c5fc (diff)
Remove old-style support for translated second architectures
Translated second architectures now go in NativeBridgeArch instead of DeviceSecondaryArch. This reapplies I568046330abc002d4eed582cb999b62a5eaba790 with ctx.Config().HasMulitlibConflict() added to fix the NDK build, which has arm64, arm, x86_64, and x86 architectures enabled. Test: m checkbuild Test: OUT_DIR=out_ndk build/soong/scripts/build-ndk-prebuilts.sh Test: no change to build.ninja or Android-aosp_cf_x86_phone.mk Change-Id: Iadcafbd64bfb9579ae7c86914927c43a062b0c8e
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index 87cf08b40..4e0118325 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -157,7 +157,7 @@ func (compiler *baseCompiler) installDir(ctx ModuleContext) android.OutputPath {
if ctx.toolchain().Is64Bit() && compiler.dir64 != "" {
dir = compiler.dir64
}
- if (!ctx.Host() && !ctx.Arch().Native) || ctx.Target().NativeBridge == android.NativeBridgeEnabled {
+ if !ctx.Host() || ctx.Target().NativeBridge == android.NativeBridgeEnabled {
dir = filepath.Join(dir, ctx.Arch().ArchType.String())
}
return android.PathForModuleInstall(ctx, dir, compiler.subDir,