Skip to content

Commit

Permalink
clippy: skip "linker" blocks in target_sources
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Jan 10, 2025
1 parent c508b26 commit da83889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/scripts/clippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def warn_missing_clippy(self, machine: str) -> None:

def __call__(self, target: T.Dict[str, T.Any]) -> T.Iterable[T.Coroutine[None, None, int]]:
for src_block in target['target_sources']:
if src_block['language'] == 'rust':
if 'compiler' in src_block and src_block['language'] == 'rust':
clippy = getattr(self.tools, src_block['machine'])
if not clippy:
self.warn_missing_clippy(src_block['machine'])
Expand Down

0 comments on commit da83889

Please sign in to comment.