diff options
author | Matthew Maurer <mmaurer@google.com> | 2020-06-23 14:28:53 -0700 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2020-07-01 11:27:12 -0700 |
commit | 2ae0513a8e4f226c2161fb89e85ef997b0881278 (patch) | |
tree | 96461712a9596a4c14dc38e6f6f2c9e1ab3a97d7 /rust/rust_test.go | |
parent | 128f53b3b471b969209f7208acca55a80f14c702 (diff) |
rust: Change default variants
rust_library now produces only rlib and dylib variants.
rust_library_foreign now produces static and shared variants.
This change was made because both are common cases, but all four
together essentially never happens. This allows us to have fewer repeat
module definitions.
Bug: 143217452
Test: cd external/rust; mma
Change-Id: Iaf69e8da38f7c12710331c51464699cf7cbbb656
Diffstat (limited to 'rust/rust_test.go')
-rw-r--r-- | rust/rust_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/rust_test.go b/rust/rust_test.go index 280c22a7e..08bc8ca48 100644 --- a/rust/rust_test.go +++ b/rust/rust_test.go @@ -164,12 +164,12 @@ func TestLinkPathFromFilePath(t *testing.T) { // Test to make sure dependencies are being picked up correctly. func TestDepsTracking(t *testing.T) { ctx := testRust(t, ` - rust_library_host_static { + rust_ffi_host_static { name: "libstatic", srcs: ["foo.rs"], crate_name: "static", } - rust_library_host_shared { + rust_ffi_host_shared { name: "libshared", srcs: ["foo.rs"], crate_name: "shared", |