summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2020-12-02 09:15:16 -0500
committerIvan Lozano <ivanlozano@google.com>2020-12-10 10:29:54 -0500
commit6a88443089849454d45135f18d32183afd122b93 (patch)
treef45bfedf9346aa13d74ee4763c896744a305a065 /rust/testing.go
parentf9e2172aec5c3d890337e568152b3c2e758a1527 (diff)
Rust: Vendor support for Rust static libraries.
We don't have Rust VNDK support yet, but static linkage can be supported in the interim. This adds support for making rust_ffi_static libraries available to CC vendor modules. Since rust_ffi_static modules will link against rlibs, we allow rlib linkage into vendor as well, but only for the variants which use the rlib libstd. Bug: 172525289 Test: New Soong tests pass Test: Example vendor cc_binary links against rust_ffi_static module. Change-Id: Idf3aeb51e32293866f1ad965e329aa6b9e0bf2ef
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index a8496d983..ca766a122 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -92,6 +92,7 @@ func GatherRequiredDepsForTest() string {
srcs: ["foo.rs"],
no_stdlibs: true,
host_supported: true,
+ vendor_available: true,
native_coverage: false,
sysroot: true,
apex_available: ["//apex_available:platform", "//apex_available:anyapex"],
@@ -102,6 +103,7 @@ func GatherRequiredDepsForTest() string {
srcs: ["foo.rs"],
no_stdlibs: true,
host_supported: true,
+ vendor_available: true,
native_coverage: false,
sysroot: true,
apex_available: ["//apex_available:platform", "//apex_available:anyapex"],