diff options
author | 2023-06-15 14:21:09 -0400 | |
---|---|---|
committer | 2023-06-15 18:29:22 +0000 | |
commit | 4df0257fe565181641df292e8cd6e76a2f273cad (patch) | |
tree | e3f062956348dccf5a70b0172d8bfeed86f7ae84 /rust/library_test.go | |
parent | cbaa0d6eb9705fcda7e28aedaea477e8a91408b1 (diff) |
rust: Make dylib-std the canonical rlib form
This removes the dylib-std suffix from rlib variants which link against
libstd dynamically. This is by far the common case.
This fixes an issue where 'm <rust_library_rlib>' would fail since Make
would expect the suffix to be included (e.g. 'm libfoo.dylib-std').
Bug: 173312517
Bug: 268086496
Test: m <rust_library_rlib> # without a suffix
Change-Id: I1e5778c57468302a8d672d5eb540047d8bb79314
Diffstat (limited to 'rust/library_test.go')
-rw-r--r-- | rust/library_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/library_test.go b/rust/library_test.go index d4b525f2e..add7173bc 100644 --- a/rust/library_test.go +++ b/rust/library_test.go @@ -247,10 +247,10 @@ func TestAutoDeps(t *testing.T) { if !android.InList("libbar", dyn.Module().(*Module).Properties.AndroidMkDylibs) { t.Errorf("libbar not present as dynamic dependency in dynamic lib") } - if android.InList("libbar.dylib-std", dyn.Module().(*Module).Properties.AndroidMkRlibs) { + if android.InList("libbar", dyn.Module().(*Module).Properties.AndroidMkRlibs) { t.Errorf("libbar present as rlib dependency in dynamic lib") } - if !android.InList("librlib_only.dylib-std", dyn.Module().(*Module).Properties.AndroidMkRlibs) { + if !android.InList("librlib_only", dyn.Module().(*Module).Properties.AndroidMkRlibs) { t.Errorf("librlib_only should be selected by rustlibs as an rlib.") } } |