dep-protobuf/examples/example_without_cc_toolchain/BUILD.bazel
Sahin Yort 8c857c3a1c fix: cc_toolchain should prefer protoc when prebuilt flag is flipped. (#25168)
cc_toolchain now respects the prefer_prebuilt_protoc flag. When the flag is set to true, the toolchain uses the full protoc binary instead of protoc_minimal, enabling prebuilt protoc support.

Follow up to this is to have minimal protoc released as an artifact and use that.

Closes #25168

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/25168 from thesayyn:cc_toolchain_prebuilt 30451beb53
PiperOrigin-RevId: 853463775
2026-01-07 16:52:04 -08:00

17 lines
608 B
Text

load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
proto_library(
name = "empty_proto",
srcs = ["empty.proto"],
)
cc_proto_library(
name = "cc_empty_proto",
# We already have a anaylsis test that asserts that the cc_proto_library
# uses the correct prebuilt toolchain, this cc_proto_library will never
# compile since the prebuilt toolchain is always behind the HEAD therefore
# will end up in version skew compilation errors.
tags = ["manual"],
deps = [":empty_proto"],
)