Re: [protobuf] A chicken and egg issue when building Protobuf

2020-09-18 Thread 'Adam Cozzette' via Protocol Buffers
That is true that there is a cyclical dependency between protoc and some generated code such as descriptor.pb.cc. The way we get around this is that we check the generated pb.cc and pb.h files into version control, and the generate_descriptor_proto.sh

[protobuf] A chicken and egg issue when building Protobuf

2020-09-17 Thread Yakov Prager
Hello friends, When building the Protobuf (version 3.13.0) solution in the Microsoft Visual Studio, I noticed that a generated file any.pb.cc is compiled _before_ the protoc executable is created. (The same is true for multiple other generated files.) -- At first sight, that dependency looks