Skip to content

Read protoc flags from environment variable #1410

Description

@LecrisUT

Similar to how the PROTOC env variable is read to specify the compiler, please expose something like PROTO_FLAGS to allow passing additional flags. I have come across this need when trying to compile some intermediary tests in tonic, etc. which needed the --experimental_allow_proto3_optional set in the tests. This seems to be protobuf version dependent because this is not needed when compiling on Fedora, but it is needed for Epel9.

I have tried to hack around with PROTOC (to pass the additional flags in there), but that does not work, so a dedicated variable seems to be needed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions