Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Ignore incompatible targets #100

Merged
merged 1 commit into from
Jul 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aspects.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ def _compilation_database_aspect_impl(target, ctx):
all_compdb_files.append(dep[OutputGroupInfo].compdb_files)
all_header_files.append(dep[OutputGroupInfo].header_files)

# TODO: Remove CcInfo check once https://github.com/bazelbuild/bazel/pull/15426 is released
# We support only these rule kinds.
if ctx.rule.kind not in _all_rules:
if ctx.rule.kind not in _all_rules or CcInfo not in target:
return [
CompilationAspect(compilation_db = depset(transitive = transitive_compilation_db)),
OutputGroupInfo(
Expand Down