blob: 19caf618d999857700372ba37446e0cc3b729c57 [file] [log] [blame]
Jan Schär219c2c62025-04-30 08:14:25 +00001load("@protobuf//bazel/toolchains:proto_toolchain.bzl", "proto_toolchain")
2load(":def.bzl", "ignore_unused_configuration_target")
3
4ignore_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.
13proto_toolchain(
14 name = "protoc_sources",
15 exec_compatible_with = [],
16 proto_compiler = ":protoc",
17)