| Jan Schär | 219c2c6 | 2025-04-30 08:14:25 +0000 | [diff] [blame^] | 1 | load("@protobuf//bazel/toolchains:proto_toolchain.bzl", "proto_toolchain") |
| 2 | load(":def.bzl", "ignore_unused_configuration_target") |
| 3 | |
| 4 | ignore_unused_configuration_target( |
| 5 | name = "protoc", |
| 6 | dep = "@protobuf//:protoc", |
| 7 | visibility = ["//visibility:private"], |
| 8 | ) |
| 9 | |
| 10 | # This is a copy of the toolchain defined at |
| 11 | # @protobuf//bazel/private/toolchains:protoc_sources_toolchain, but with unused |
| 12 | # configurations reset, such that we build protoc only once. |
| 13 | proto_toolchain( |
| 14 | name = "protoc_sources", |
| 15 | exec_compatible_with = [], |
| 16 | proto_compiler = ":protoc", |
| 17 | ) |