Ignore clippy configuration flags.

Test: Ran ./all2android.sh under external/crosvm
Change-Id: I29a50ee242bca5111004b6ba56867b1e68ccd8f3
This commit is contained in:
Andrew Walbran
2022-01-06 17:45:33 +00:00
parent a3fe9b1729
commit 0e65bba93d

View File

@@ -432,6 +432,9 @@ class Crate(object):
self.emit_list = arg.replace('--emit=', '')
elif arg.startswith('--edition='):
self.edition = arg.replace('--edition=', '')
elif arg.startswith('\'-Aclippy'):
# TODO: Consider storing these to include in the Android.bp.
_ = arg # ignored
elif not arg.startswith('-'):
# shorten imported crate main source paths like $HOME/.cargo/
# registry/src/github.com-1ecc6299db9ec823/memchr-2.3.3/src/lib.rs