mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
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
17 lines
608 B
Text
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"],
|
|
)
|