Skip to content

Commit a55367b

Browse files
authored
Expose symbols on macos in the xplat pytorch stack
Differential Revision: D72255474 Pull Request resolved: #9819
1 parent 91c9417 commit a55367b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shim_et/xplat/executorch/build/runtime_wrapper.bzl

+5
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)