diff options
author | Stephen Crane <sjc@immunant.com> | 2020-08-04 13:02:28 -0700 |
---|---|---|
committer | Stephen Crane <sjc@immunant.com> | 2020-08-04 13:04:32 -0700 |
commit | da931d4abdd32d97c518ffb901c6631317d78b80 (patch) | |
tree | fc7d02855f51ede8f8a483f2b32a857066daf0fc /rust/compiler.go | |
parent | ea3574b5fab70527d23f834f34f1583eee6e900f (diff) |
[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
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index c2b7e569c..0274015c9 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -32,6 +32,10 @@ func (compiler *baseCompiler) setNoStdlibs() { 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 { return &baseCompiler{ Properties: BaseCompilerProperties{}, |