[rust] Disable lints for generated bindings
Bindgen generated bindings will not pass lints, so we need to disable them when building bindings crates. Test: m libbinder_ndk_bindgen Change-Id: I4536f15f8505ff8d5436f1e6cbc2035e6801276d
This commit is contained in:
parent
ea3574b5fa
commit
da931d4abd
2 changed files with 5 additions and 0 deletions
|
@ -173,6 +173,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat
|
||||||
|
|
||||||
_, library := NewRustLibrary(hod)
|
_, library := NewRustLibrary(hod)
|
||||||
library.BuildOnlyRust()
|
library.BuildOnlyRust()
|
||||||
|
library.setNoLint()
|
||||||
library.sourceProvider = bindgen
|
library.sourceProvider = bindgen
|
||||||
|
|
||||||
module.sourceProvider = bindgen
|
module.sourceProvider = bindgen
|
||||||
|
|
|
@ -32,6 +32,10 @@ func (compiler *baseCompiler) setNoStdlibs() {
|
||||||
compiler.Properties.No_stdlibs = proptools.BoolPtr(true)
|
compiler.Properties.No_stdlibs = proptools.BoolPtr(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (compiler *baseCompiler) setNoLint() {
|
||||||
|
compiler.Properties.No_lint = proptools.BoolPtr(true)
|
||||||
|
}
|
||||||
|
|
||||||
func NewBaseCompiler(dir, dir64 string, location installLocation) *baseCompiler {
|
func NewBaseCompiler(dir, dir64 string, location installLocation) *baseCompiler {
|
||||||
return &baseCompiler{
|
return &baseCompiler{
|
||||||
Properties: BaseCompilerProperties{},
|
Properties: BaseCompilerProperties{},
|
||||||
|
|
Loading…
Reference in a new issue