Revert^2 "rust: Only allow bindgen to produce rlib
s."
b983c8971b
Change-Id: Ic82433885f7932be8cfe65433330527214807684
This commit is contained in:
@@ -299,7 +299,15 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat
|
||||
ClangProperties: cc.RustBindgenClangProperties{},
|
||||
}
|
||||
|
||||
module := NewSourceProviderModule(hod, bindgen, false)
|
||||
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)
|
||||
})
|
||||
|
||||
return module, bindgen
|
||||
}
|
||||
|
Reference in New Issue
Block a user