KEMBAR78
Add target_compatible_with parameter to proto_toolchain in Bazel rules by jagub2 · Pull Request #22429 · protocolbuffers/protobuf · GitHub
Skip to content

Conversation

@jagub2
Copy link
Contributor

@jagub2 jagub2 commented Jun 27, 2025

In some cases, few targets can require different proto_toolchains.

In my case, my project defines different toolchains and each of them can define its own Protobuf compiler from its SDK, independent of the others. Restricting it with exec_compatible_with is not an option, since each target is built on the same x86_64 system.

I patched this Bazel file in my build system and thus was able to define the Protobuf compiler independently for each target.

In some cases, few targets can require different proto_toolchains.
@shaod2 shaod2 added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jul 14, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jul 14, 2025
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