Internal changes

PiperOrigin-RevId: 622923786
pull/16443/head
Mike Kruskal 8 months ago committed by Copybara-Service
parent d813cc0d64
commit 8a5b54f6a8
  1. 3
      src/google/protobuf/compiler/command_line_interface.cc

@ -1264,7 +1264,8 @@ int CommandLineInterface::Run(int argc, const char* const argv[]) {
// Enforce extension declarations only when compiling. We want to skip
// this enforcement when protoc is just being invoked to encode or decode
// protos.
if (mode_ == MODE_COMPILE) {
if (mode_ == MODE_COMPILE
) {
descriptor_pool->EnforceExtensionDeclarations(true);
}
if (!ParseInputFiles(descriptor_pool.get(), disk_source_tree.get(),

Loading…
Cancel
Save