Skip to content

Commit 0b1b312

Browse files
stepanhrudafacebook-github-bot
authored andcommitted
Expose symbols on macos in the xplat pytorch stack (#9819)
Summary: X-link: pytorch/pytorch#150487 Pull Request resolved: #9819 Had to revert D71321310 because it affected way too many targets and build sizes. These changes should expose just enough symbols to be buildable in arvr mode on macOS. Could potentially make narrow it down even more by avoiding eg `get_pt_compiler_flags` Differential Revision: D72255474
1 parent 9e7b469 commit 0b1b312

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shim_et/xplat/executorch/build/runtime_wrapper.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ def _patch_build_mode_flags(kwargs):
112112
# @oss-disable: "ovr_config//build_mode:code-coverage": ["-D__ET_BUILD_MODE_COV=1"],
113113
})
114114

115+
kwargs["compiler_flags"] = kwargs["compiler_flags"] + select({
116+
"DEFAULT": [],
117+
"ovr_config//os:macos": ["-fvisibility=default"],
118+
})
119+
115120
return kwargs
116121

117122
def _patch_test_compiler_flags(kwargs):

0 commit comments

Comments
 (0)