Commit 30d2332
Add target_compatible_with parameter to proto_toolchain in Bazel rules (#22429)
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.
Closes #22429
COPYBARA_INTEGRATE_REVIEW=#22429 from jagub2:proto_toolchain_target_compatibility 6539aad
PiperOrigin-RevId: 7858281941 parent 00c3c30 commit 30d2332
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
0 commit comments