From 14b2bb60f179da94b1b3f0ceb8479c86b67d3d98 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Wed, 10 Sep 2025 14:51:45 -0700 Subject: [PATCH] Update [ghstack-poisoned] --- shim_et/xplat/executorch/build/runtime_wrapper.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shim_et/xplat/executorch/build/runtime_wrapper.bzl b/shim_et/xplat/executorch/build/runtime_wrapper.bzl index d6d8d89eddc..bbf4a0fe789 100644 --- a/shim_et/xplat/executorch/build/runtime_wrapper.bzl +++ b/shim_et/xplat/executorch/build/runtime_wrapper.bzl @@ -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. " + @@ -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.