Skip to content

Conversation

@dzbarsky
Copy link
Contributor

However, it's not enough for tool_map to be on cc_toolchain_config - it must be on the toolchain itself to properly share the same exec platform as the action requesting the toolchain. Therefore we rearrange the implementation of the cc_toolchain macro to pass it to the rule, and teach the rule to accept it from either the attribute or the cc_toolchain_config. Eventually, cc_toolchain_config can be retired, though it will be a long journey.

@dzbarsky dzbarsky force-pushed the zbarsky/tool_map branch 3 times, most recently from c830c32 to 0ac92cf Compare January 10, 2026 01:00
Copy link
Collaborator

@armandomontanez armandomontanez left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! I'll try to take a closer look early next week. If I don't get back to you in a timely manner, please ping me with a comment here.

@@ -0,0 +1,33 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

Needs copyright header for consistency

@@ -1 +1 @@
7.2.1
9.0.0rc3 No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you update the GH actions to test this in Bazel 8 and 9? The behavior will be different enough that we should make sure things work at a basic level in both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants