Merge "Only return the source files of a Rust module with a SourceProvider if the internal compiler has been disabled" am: 4c698f3ff2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1393632 Change-Id: I06243ab4506fd46e760da0b45d97bdda79698196
This commit is contained in:
commit
1200e780fd
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue