Merge "rust: collect file dependencies for clippy" am: a8ccbaf1e8

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

Change-Id: I640bcb97f3746c7694f60f85f04b4f3a4f0bfa1d
This commit is contained in:
Thiébaud Weksteen 2021-04-08 13:51:03 +00:00 committed by Automerger Merge Worker
commit 0384ba1092

View file

@ -51,9 +51,12 @@ var (
Command: "$envVars $clippyCmd " +
// Because clippy-driver uses rustc as backend, we need to have some output even during the linting.
// Use the metadata output as it has the smallest footprint.
"--emit metadata -o $out $in ${libFlags} " +
"$rustcFlags $clippyFlags",
"--emit metadata -o $out --emit dep-info=$out.d.raw $in ${libFlags} " +
"$rustcFlags $clippyFlags" +
" && grep \"^$out:\" $out.d.raw > $out.d",
CommandDeps: []string{"$clippyCmd"},
Deps: blueprint.DepsGCC,
Depfile: "$out.d",
},
"rustcFlags", "libFlags", "clippyFlags", "envVars")