mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-23 12:49:55 +00:00
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:
parent
0cf93bfccd
commit
d874d323c9
1 changed files with 2 additions and 4 deletions
|
@ -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}")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue