From 3149e6ed1882786fc9e1defd0b5540c0147a0209 Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Tue, 1 Jun 2021 15:09:53 -0400 Subject: 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 --- rust/testing.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/testing.go') 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) } -- cgit v1.2.3-59-g8ed1b