Skip to content

Support genfile rules#100

Merged
furtib merged 2 commits intoEricsson:mainfrom
furtib:support_genrule
Nov 24, 2025
Merged

Support genfile rules#100
furtib merged 2 commits intoEricsson:mainfrom
furtib:support_genrule

Conversation

@furtib
Copy link
Contributor

@furtib furtib commented Nov 12, 2025

Added generated files to the CompileInfo aspect.

Why:
We want to support analysis on generated files, so that they can be used during CTU analysis

What:
Removed is_source validation for source files.
Generated files are regarded as output, not input, and thus they aren't regarded as source files and were filtered from the list of source files.

Addresses:
#99
Depends on: #101

@furtib furtib requested a review from Szelethus November 12, 2025 14:18
@furtib furtib self-assigned this Nov 12, 2025
@furtib furtib added the bug Something isn't working label Nov 12, 2025
@nettle
Copy link
Collaborator

nettle commented Nov 12, 2025

https://bazel.build/rules/lib/builtins/File#is_source

This change is important, to support generated source files.
Generated source files despite their extension being .c, .cc or .cpp
were filtered because they aren't considered source files.
Copy link
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@furtib furtib merged commit d8fb27c into Ericsson:main Nov 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments