From 0f003b18516df3df3fa631ca6d1e21322d0947cf Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Mon, 29 Jun 2020 14:34:06 -0700 Subject: rust: Add rustlibs auto dependency selection Adds the rustlibs dependency type which will automatically select between rlib and dylib based on the type of the library. Bug: 143217452 Test: cd external/rust; mma Change-Id: I97faadae98bf957090a32939cfb2d3a10f74a057 --- rust/test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/test.go') diff --git a/rust/test.go b/rust/test.go index 416c557d8..e27a70cac 100644 --- a/rust/test.go +++ b/rust/test.go @@ -105,6 +105,10 @@ func (test *testDecorator) compilerFlags(ctx ModuleContext, flags Flags) Flags { return flags } +func (test *testDecorator) autoDep() autoDep { + return rlibAutoDep +} + func init() { // Rust tests are binary files built with --test. android.RegisterModuleType("rust_test", RustTestFactory) -- cgit v1.2.3-59-g8ed1b