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/testing.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/testing.go')
-rw-r--r-- | rust/testing.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go index 4c4df4a6d..1afe27ef0 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -46,6 +46,30 @@ func GatherRequiredDepsForTest() string { sysroot: true, } rust_prebuilt_library { + name: "libstd_i686-unknown-linux-gnu", + crate_name: "std", + rlib: { + srcs: ["libstd.rlib"], + }, + dylib: { + srcs: ["libstd.so"], + }, + host_supported: true, + sysroot: true, + } + rust_prebuilt_library { + name: "libtest_i686-unknown-linux-gnu", + crate_name: "test", + rlib: { + srcs: ["libtest.rlib"], + }, + dylib: { + srcs: ["libtest.so"], + }, + host_supported: true, + sysroot: true, + } + rust_prebuilt_library { name: "libstd_x86_64-apple-darwin", crate_name: "std", rlib: { |