Fix the Linux CMake Shared test run

The StripSourceRetentionOptions() function needs to be marked with
`PROTOC_EXPORT` so that it's visible on libprotoc.so.

PiperOrigin-RevId: 506430373
pull/11757/head
Adam Cozzette 2 years ago committed by Copybara-Service
parent fbe738ed8a
commit aef61d90c5
  1. 8
      src/google/protobuf/compiler/retention.h

@ -34,16 +34,22 @@
#include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.h"
#include "google/protobuf/descriptor.pb.h" #include "google/protobuf/descriptor.pb.h"
// Must appear last
#include "google/protobuf/port_def.inc"
namespace google { namespace google {
namespace protobuf { namespace protobuf {
namespace compiler { namespace compiler {
// Returns a FileDescriptorProto for this file, with all RETENTION_SOURCE // Returns a FileDescriptorProto for this file, with all RETENTION_SOURCE
// options stripped out. // options stripped out.
FileDescriptorProto StripSourceRetentionOptions(const FileDescriptor& file); PROTOC_EXPORT FileDescriptorProto
StripSourceRetentionOptions(const FileDescriptor& file);
} // namespace compiler } // namespace compiler
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_COMPILER_RETENTION_H__ #endif // GOOGLE_PROTOBUF_COMPILER_RETENTION_H__

Loading…
Cancel
Save