Skip to content

Support --incompatible_enable_proto_toolchain_resolution #17075

@alexeagle

Description

@alexeagle

Bazel 7 introduces this flag, allowing users to avoid compiling protoc from sources if they desire.

When this flag is enabled, rules like py_proto_library should use Bazel's toolchain resolver to locate protoc rather than use the hard-coded //:protoc cc_binary target in this repo.

As a concrete example, 8257c44 was performed before bazel-contrib/rules_python#1577 landed, so even with the toolchain resolution flag enabled, users get a build failure if their CC toolchain isn't functional.

What version of protobuf and what language are you using?
Version: latest (27.1)
Language: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions