Skip to content

Commit

Permalink
hide symbols except for PyInit by on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Cerek Hillen <[email protected]>
  • Loading branch information
crockeo committed Jun 3, 2021
1 parent 70e2cbf commit db36cd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ pybind_extension(
srcs = [
"module_definition.cc",
],
linkopts = select({
"//bazel:darwin": ["-Wl,-exported_symbol,_PyInit_envoy_engine"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
deps = [
":envoy_engine_lib",
Expand Down

0 comments on commit db36cd0

Please sign in to comment.