diff options
author | 2021-06-01 15:09:53 -0400 | |
---|---|---|
committer | 2021-06-03 08:36:09 -0400 | |
commit | 3149e6ed1882786fc9e1defd0b5540c0147a0209 (patch) | |
tree | edee79e9487fdbc90116eb3d71f9f867746ac28a /rust/testing.go | |
parent | d1dec54988630cabaf15b2353e55460f79c05b0c (diff) |
Rust rlib vendor snapshot support.
Adds support for snapshotting Rust rlibs. This allows us
vendor-specific code that uses rlib-only linkage until dylib
snapshot support is added.
Bug: 184042776
Test: m nothing # new Soong tests pass
Test: Example test Rust vendor module builds
Test: m dist vendor-snapshot # includes rlibs
Change-Id: I4976d3e1efec0ee778cc97730d45be471dffb678
Diffstat (limited to 'rust/testing.go')
-rw-r--r-- | rust/testing.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go index a7cbf54d8..72f87e136 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -135,6 +135,9 @@ func GatherRequiredDepsForTest() string { apex_available: ["//apex_available:platform", "//apex_available:anyapex"], min_sdk_version: "29", vendor_available: true, + llndk: { + symbol_file: "liblog.map.txt", + }, } cc_library { name: "libprotobuf-cpp-full", @@ -245,4 +248,5 @@ func registerRequiredBuildComponentsForTest(ctx android.RegistrationContext) { ctx.BottomUp("rust_begin", BeginMutator).Parallel() }) ctx.RegisterSingletonType("rust_project_generator", rustProjectGeneratorSingleton) + registerRustSnapshotModules(ctx) } |