tools/clippy: exclude crates on all platforms

Make sure that excluded crates are actually not considered on all
platforms, not just Windows.

BUG=None
TEST=./tools/clippy succeeds and does not attempt to build ffmpeg.

Change-Id: If7167bb6b598692847bbab9f069f875a3fb0b581
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3844812
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-08-22 16:12:58 +09:00 committed by crosvm LUCI
parent 0cf93bfccd
commit d874d323c9

View file

@ -16,14 +16,12 @@ from impl.test_target import Triple
clippy = cmd("cargo clippy")
excluded_crates: list[str] = []
excluded_crates: list[str] = list(get_workspace_excludes(Triple.host_default()))
features: str = ""
if os.name == "posix":
features = "--features=all-linux"
elif os.name == "nt":
excluded_crates = list(get_workspace_excludes(Triple.from_str("x86_64-pc-windows-msvc")))
else:
elif os.name != "nt":
raise Exception(f"Unsupported build target: {os.name}")