Merge "[rust] Disable clippy for rust_bindgen modules."
This commit is contained in:
commit
b14e141519
2 changed files with 7 additions and 0 deletions
|
@ -178,6 +178,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat
|
||||||
|
|
||||||
module.sourceProvider = bindgen
|
module.sourceProvider = bindgen
|
||||||
module.compiler = library
|
module.compiler = library
|
||||||
|
module.setClippy(false)
|
||||||
|
|
||||||
return module, bindgen
|
return module, bindgen
|
||||||
}
|
}
|
||||||
|
|
|
@ -1037,6 +1037,12 @@ func (mod *Module) Name() string {
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (mod *Module) setClippy(clippy bool) {
|
||||||
|
if mod.clippy != nil {
|
||||||
|
mod.clippy.Properties.Clippy = proptools.BoolPtr(clippy)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var _ android.HostToolProvider = (*Module)(nil)
|
var _ android.HostToolProvider = (*Module)(nil)
|
||||||
|
|
||||||
func (mod *Module) HostToolPath() android.OptionalPath {
|
func (mod *Module) HostToolPath() android.OptionalPath {
|
||||||
|
|
Loading…
Reference in a new issue