dep-protobuf/python/google/protobuf/link_error_pure_python.cc
Jie Luo 656d62ae32 internal change
PiperOrigin-RevId: 572965793
2023-10-12 11:35:58 -07:00

23 lines
529 B
C++

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