Commit b5a6cae5 by Ralf W. Grosse-Kunstleve Committed by Copybara-Service

Internal change

PiperOrigin-RevId: 495002753
parent d5d07895
...@@ -46,7 +46,7 @@ cc_library( ...@@ -46,7 +46,7 @@ cc_library(
cc_binary( cc_binary(
name = "ok_status_singleton.so", name = "ok_status_singleton.so",
srcs = ["ok_status_singleton_pyinit_relative.cc"], srcs = ["ok_status_singleton_py_extension_stub.cc"],
linkshared = 1, linkshared = 1,
deps = [ deps = [
":ok_status_singleton_pyinit_google3", ":ok_status_singleton_pyinit_google3",
...@@ -160,7 +160,7 @@ pybind_library( ...@@ -160,7 +160,7 @@ pybind_library(
cc_binary( cc_binary(
name = "status.so", name = "status.so",
srcs = ["status_pyinit_relative.cc"], srcs = ["status_py_extension_stub.cc"],
linkshared = 1, linkshared = 1,
deps = [ deps = [
":status_pyinit_google3", ":status_pyinit_google3",
......
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
extern "C" PyObject* extern "C" PyObject*
GooglePyInit_google3_third__party_pybind11__abseil_status(); GooglePyInit_google3_third__party_pybind11__abseil_status();
extern "C" PyObject* PyInit_status() { // Required only for OSS, but also compatible with the Google toolchain.
#if defined(WIN32) || defined(_WIN32)
#define LOCALDEFINE_DLLEXPORT __declspec(dllexport)
#else
#define LOCALDEFINE_DLLEXPORT __attribute__((visibility("default")))
#endif
extern "C" LOCALDEFINE_DLLEXPORT PyObject* PyInit_status() {
return GooglePyInit_google3_third__party_pybind11__abseil_status(); return GooglePyInit_google3_third__party_pybind11__abseil_status();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment