Revert "rust: Only allow bindgen to produce rlibs."

This reverts commit 53a452d1ff.

Reason for revert: Broken build

Change-Id: I4c1c6f2166c3729ef1916ad7c21e32599c5e692f
This commit is contained in:
Matthew Maurer
2022-08-01 21:59:00 +00:00
parent 53a452d1ff
commit b983c8971b
3 changed files with 3 additions and 14 deletions

View File

@@ -299,15 +299,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat
ClangProperties: cc.RustBindgenClangProperties{},
}
module := NewSourceProviderModule(hod, bindgen, false, true)
android.AddLoadHook(module, func(ctx android.LoadHookContext) {
type stub_props struct {
Visibility []string
}
props := &stub_props{[]string{":__subpackages__"}}
ctx.PrependProperties(props)
})
module := NewSourceProviderModule(hod, bindgen, false)
return module, bindgen
}