Skip to content

Commit 06362f3

Browse files
authored
Allow PUBLIC visibility and make it the default
Differential Revision: D82156686 Pull Request resolved: #14181
1 parent 2e44184 commit 06362f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shim_et/xplat/executorch/build/runtime_wrapper.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _patch_kwargs_common(kwargs):
182182
# don't pick up unexpected clients while things are still in flux.
183183
if not kwargs.pop("_is_external_target", False):
184184
for target in kwargs.get("visibility", []):
185-
if not (target.startswith("//executorch") or target.startswith("//pytorch/tokenizers") or target.startswith("@")):
185+
if not (target == "PUBLIC" or target.startswith("//executorch") or target.startswith("//pytorch/tokenizers") or target.startswith("@")):
186186
fail("Please manage all external visibility using the " +
187187
"EXECUTORCH_CLIENTS list in " +
188188
"//executorch/build/fb/clients.bzl. " +
@@ -199,7 +199,7 @@ def _patch_kwargs_common(kwargs):
199199
env.patch_deps(kwargs, dep_type)
200200

201201
if "visibility" not in kwargs:
202-
kwargs["visibility"] = ["//executorch/..."]
202+
kwargs["visibility"] = ["PUBLIC"]
203203

204204
# Patch up references to "//executorch/..." in lists of build targets,
205205
# if necessary.

0 commit comments

Comments
 (0)