Skip to content

Commit 42271cf

Browse files
stepanhrudafacebook-github-bot
authored andcommitted
Expose symbols on macos in the xplat pytorch stack
Summary: X-link: pytorch/pytorch#150487 X-link: pytorch/executorch#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` Reviewed By: drisspg Differential Revision: D72255474 fbshipit-source-id: a196d32526ef826be3baf6ab53e9e0949718bec1
1 parent 9eadefd commit 42271cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folly/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def folly_xplat_library(
166166
"ovr_config//os:android": FBANDROID_CXXFLAGS,
167167
"ovr_config//os:iphoneos": CLANG_CXX_FLAGS,
168168
# TODO: Why iphoneos and macos are not marked as clang compilers?
169-
"ovr_config//os:macos": CLANG_CXX_FLAGS,
169+
"ovr_config//os:macos": CLANG_CXX_FLAGS + ["-fvisibility=default"],
170170
}) + select({
171171
"DEFAULT": [],
172172
"ovr_config//os:windows-cl": WINDOWS_MSVC_CXXFLAGS,

0 commit comments

Comments
 (0)