Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06c5c9c3 authored by Stephen Crane's avatar Stephen Crane Committed by Automerger Merge Worker
Browse files

[rust] Disable lints for generated bindings am: da931d4a

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1388347

Change-Id: I508fc3c8a0dacc027d78ad1457e1663bad624b1d
parents 64f018a4 da931d4a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat

	_, library := NewRustLibrary(hod)
	library.BuildOnlyRust()
	library.setNoLint()
	library.sourceProvider = bindgen

	module.sourceProvider = bindgen
+4 −0
Original line number Diff line number Diff line
@@ -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{},