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

Commit 5db69cc8 authored by Andrei Homescu's avatar Andrei Homescu
Browse files

Only return the source files of a Rust module with a SourceProvider if the...

Only return the source files of a Rust module with a SourceProvider if the internal compiler has been disabled

Test: mmma system/tools/aidl with assertOutput FIXMEs re-enabled
Change-Id: I84598ae2d1181656b7d68088f86ab016563e5d80
parent 3d02e1f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ type Module struct {
func (mod *Module) OutputFiles(tag string) (android.Paths, error) {
	switch tag {
	case "":
		if mod.sourceProvider != nil {
		if mod.sourceProvider != nil && (mod.compiler == nil || mod.compiler.Disabled()) {
			return mod.sourceProvider.Srcs(), nil
		} else {
			if mod.outputFile.Valid() {