dep-protobuf/python/google/protobuf/link_error_upb.cc
Jie Luo a2cc9f7b62 internal change
PiperOrigin-RevId: 619038132
2024-03-25 20:02:03 -07:00

24 lines
551 B
C++

// go/fastpythonproto
namespace google {
namespace protobuf {
namespace python {
// This exists solely to cause a build/link time error when either
// :use_fast_cpp_protos and :use_pure_python are specified in a build
// in addition to :use_upb_protos.;
extern "C" {
// MUST match link_error_pure_python.cc's function signature.
__attribute__((noinline)) __attribute__((optnone)) int
go_SLASH_build_deps_on_multiple_python_proto_backends() {
return 2;
}
} // extern "C"
} // namespace python
} // namespace protobuf
} // namespace google