Skip to content

Add excludes to cc_action_type_set#669

Open
keith wants to merge 5 commits into
bazelbuild:mainfrom
keith:ks/add-excludes-to-cc_action_type_set
Open

Add excludes to cc_action_type_set#669
keith wants to merge 5 commits into
bazelbuild:mainfrom
keith:ks/add-excludes-to-cc_action_type_set

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Mar 26, 2026

This makes it easier to compose action sets that are very similar to
other ones but excluding a few things. This is used today for
lto_backend, and in this change is also used for header parsing, which
produces a warning when -c is passed.

Comment thread cc/toolchains/actions/BUILD
@hvadehra hvadehra removed their request for review April 9, 2026 16:46
keith added 2 commits May 26, 2026 11:59
This makes it easier to compose action sets that are very similar to
other ones but excluding a few things. This is used today for
lto_backend, and in this change is also used for header parsing, which
produces a warning when `-c` is passed.
@keith keith force-pushed the ks/add-excludes-to-cc_action_type_set branch from 01ff879 to 2e8b05b Compare May 26, 2026 19:02
)

cc_action_type_set(
name = "cpp_compile_without_header_parsing",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i don't think we had a use for this one so I replaced it with the one that is used and includes more actions

@keith
Copy link
Copy Markdown
Member Author

keith commented May 26, 2026

@armandomontanez can you to take another look given the discussion on #686

Comment thread cc/toolchains/actions.bzl Outdated
doc = "A list of cc_action_type or cc_action_type_set",
),
"excludes": attr.label_list(
providers = [ActionTypeSetInfo],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I feel like we should start with ActionTypeInfo to prevent weird compositions of cc_action_type_set groups. Does that sound reasonable?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yea seems fine, done

@armandomontanez armandomontanez added type: feature request Request for new, generally useful functionality that is missing P2 We'll consider working on this in future. (Assignee optional) category: toolchains community-reviewed Reviewed by a trusted community contributor labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: toolchains community-reviewed Reviewed by a trusted community contributor P2 We'll consider working on this in future. (Assignee optional) type: feature request Request for new, generally useful functionality that is missing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants