Skip to content

Expose symbols on macos in the xplat pytorch stack #9819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions shim_et/xplat/executorch/build/runtime_wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ def _patch_build_mode_flags(kwargs):
# @oss-disable: "ovr_config//build_mode:code-coverage": ["-D__ET_BUILD_MODE_COV=1"],
})

kwargs["compiler_flags"] = kwargs["compiler_flags"] + select({
"DEFAULT": [],
"ovr_config//os:macos": ["-fvisibility=default"],
})

return kwargs

def _patch_test_compiler_flags(kwargs):
Expand Down
Loading