CGenerator: Do not claim to support editions
As detailed in https://github.com/protobuf-c/protobuf-c/pull/711, the protobuf compiler apparently polices the values reported by a code generator's GetMinimumEdition() / GetMaximumEdition() methods, if GetSupportedFeatures() reports that it reports editions. Returning `FEATURE_SUPPORTS_EDITIONS` broke the legacy `protoc-c` command-line binary because that binary "registers" the protobuf-c code generator as a built-in code generator, whereas `protoc-gen-c` (aka `protoc --c_out=`) is a code generator plugin and the policing performed by protobuf's `CommandLineInterface::SetupFeatureResolution()` method apparently doesn't apply to plugins. This commit prevents our min/max editions from being policed when invoked as `protoc-c`. Tested with protobuf 29.3.
Showing
Please register or sign in to comment