diff options
author | Ivan Lozano <ivanlozano@google.com> | 2021-02-09 14:22:00 -0500 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2021-02-09 14:22:00 -0500 |
commit | c5d34ec1006f177c25aa425e72b1815d84379078 (patch) | |
tree | 8e6ff9078cbc68e4e22988ec61f33ca1833fba0b /rust/compiler.go | |
parent | 81314ff2e6a906a0d2400d0fd900fe77007fcf3b (diff) |
rust: Use prebuilts for x86 host target.
Use prebuilts for x86 host targets to make both x86 and x86_64 builds
more consistent with one another. This fixes building x86 binaries.
Bug: 162063992
Bug: 169347277
Test: Build 32-bit host module.
Change-Id: Id11eb0f3b949439cec090060a33b755af94b5883
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 586063e91..224e2017d 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -254,7 +254,7 @@ func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps { if !Bool(compiler.Properties.No_stdlibs) { for _, stdlib := range config.Stdlibs { // If we're building for the primary arch of the build host, use the compiler's stdlibs - if ctx.Target().Os == android.BuildOs && ctx.TargetPrimary() { + if ctx.Target().Os == android.BuildOs { stdlib = stdlib + "_" + ctx.toolchain().RustTriple() } |