From d8f64ec810b8ff39ab929a1ecdb4a4a81c22ffed Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Tue, 6 Aug 2024 14:22:20 +0000 Subject: [PATCH] rust: Add dylib variants for bindgen modules. Provide dylib variants for bindgen modules. This avoids issues where bindgen modules being rlib-only results in a dependency tree containing the same crate with two different linkages. Bug: 294698705 Test: Example with binder and fmq crates builds. Change-Id: Ia72f573db3c232c97276038e4315134d90033e10 --- rust/bindgen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/bindgen.go b/rust/bindgen.go index d412ea1cc..a81024acd 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -364,7 +364,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat ClangProperties: cc.RustBindgenClangProperties{}, } - module := NewSourceProviderModule(hod, bindgen, false, true) + module := NewSourceProviderModule(hod, bindgen, false, false) android.AddLoadHook(module, func(ctx android.LoadHookContext) { type stub_props struct {