Skip to content
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
4 changes: 2 additions & 2 deletions shim_et/xplat/executorch/build/runtime_wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _patch_kwargs_common(kwargs):
# don't pick up unexpected clients while things are still in flux.
if not kwargs.pop("_is_external_target", False):
for target in kwargs.get("visibility", []):
if not (target.startswith("//executorch") or target.startswith("//pytorch/tokenizers") or target.startswith("@")):
if not (target == "PUBLIC" or target.startswith("//executorch") or target.startswith("//pytorch/tokenizers") or target.startswith("@")):
fail("Please manage all external visibility using the " +
"EXECUTORCH_CLIENTS list in " +
"//executorch/build/fb/clients.bzl. " +
Expand All @@ -199,7 +199,7 @@ def _patch_kwargs_common(kwargs):
env.patch_deps(kwargs, dep_type)

if "visibility" not in kwargs:
kwargs["visibility"] = ["//executorch/..."]
kwargs["visibility"] = ["PUBLIC"]

# Patch up references to "//executorch/..." in lists of build targets,
# if necessary.
Expand Down
Loading