Skip to content

Remove use_module_maps from layering_check#657

Open
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/remove-use_module_maps-from-layering_check
Open

Remove use_module_maps from layering_check#657
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/remove-use_module_maps-from-layering_check

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Mar 24, 2026

In today's unix toolchain this feature is used to allow adding extra
compiler flags, otherwise it is not special. This simplifies what users
have to do to setup layering_check. If users want the same custom
compiler flags they can add another cc_args that is dependent on the
layering_check feature.

@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 labels Mar 27, 2026
@hvadehra hvadehra removed their request for review April 21, 2026 04:53
feature_name = "module_maps",
)

cc_feature(
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.

This is breaking (the comment above asked users to add this feature to their toolchain configuration). We can work around this by leaving a vacant stub cc_feature in place.

# This is no longer necessary, and does nothing. It will be
# removed in a future release.
cc_feature(
    name = "use_module_maps",
    feature_name = "use_module_maps",
)

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.

hrm given how new all this stuff is i kinda think we should just not worry about it. but i guess there's minor risk that someone removes it and then is used with an old rules_cc version that requires it. less of an issue in a post bzlmod world. i added the empty one

@keith keith force-pushed the ks/remove-use_module_maps-from-layering_check branch from 763c252 to 419a9e1 Compare April 24, 2026 22:56
In today's unix toolchain this feature is used to allow adding extra
compiler flags, otherwise it is not special. This simplifies what users
have to do to setup layering_check. If users want the same custom
compiler flags they can add another cc_args that is dependent on the
layering_check feature.
@keith keith force-pushed the ks/remove-use_module_maps-from-layering_check branch from 419a9e1 to ebc52d1 Compare April 24, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: toolchains 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.

2 participants